release_tools 2.1.1 release_tools: ^2.1.1 copied to clipboard
A collection of scripts to help with creating releases and publishing libraries.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate release_tools
Use it
The package has the following executables:
$ release_tools
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add release_tools
With Flutter:
$ flutter pub add release_tools
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
release_tools: ^2.1.1
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:release_tools/changelog_command.dart';
import 'package:release_tools/current_version_command.dart';
import 'package:release_tools/exec.dart';
import 'package:release_tools/git_exec.dart';
import 'package:release_tools/help_footer.dart';
import 'package:release_tools/next_version_command.dart';
import 'package:release_tools/prepare_release_command.dart';
import 'package:release_tools/printer.dart';
import 'package:release_tools/project.dart';
import 'package:release_tools/release_tools_command.dart';
import 'package:release_tools/release_tools_runner.dart';
import 'package:release_tools/release_tools_version.dart';
import 'package:release_tools/remote_tag_id_command.dart';
import 'package:release_tools/should_release_command.dart';
import 'package:release_tools/update_version_command.dart';
import 'package:release_tools/update_year_command.dart';
import 'package:release_tools/version_helpers.dart';