protofu 1.2.1
protofu: ^1.2.1 copied to clipboard
ProtoFu compiles protos for you! Transitive dependency tracking, protoc downloading, and more.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate protofuUse it
The package has the following executables:
$ protofu
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add protofuWith Flutter:
$ flutter pub add protofuThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
protofu: ^1.2.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:protofu/compile_protos.dart';
import 'package:protofu/cursor.dart';
import 'package:protofu/download_tools.dart';
import 'package:protofu/git.dart';
import 'package:protofu/paths.dart';
import 'package:protofu/process_deps.dart';
import 'package:protofu/progress_bar.dart';
import 'package:protofu/repos.dart';
import 'package:protofu/spinner.dart';
import 'package:protofu/unzip.dart';
import 'package:protofu/work.dart';