pubspec_version_cli 0.1.0
pubspec_version_cli: ^0.1.0 copied to clipboard
A Command-Line Interface to replace the version in pubspec.yaml
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate pubspec_version_cli
copied to clipboard
Use it
The package has the following executables:
$ pubspec_version
copied to clipboard
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add pubspec_version_cli
copied to clipboard
With Flutter:
$ flutter pub add pubspec_version_cli
copied to clipboard
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
pubspec_version_cli: ^0.1.0
copied to clipboard
Alternatively, 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:pubspec_version_cli/pubspec_version_cli.dart';
copied to clipboard