null_safety_percentage 0.1.0
null_safety_percentage: ^0.1.0 copied to clipboard
Command-line tool to provide null-safety percentage info of a project. Track your migration progress on mixed-version programs that execute with unsound null safety.
null_safety_percentage
#
Command-line tool to provide null-safety percentage info of a project. Track your migration progress on mixed-version programs that execute with unsound null safety.
Important links #
- Read the source code and star the repo on GitHub
- Open an issue on GitHub
- See package on
pub.dev
- Read the docs on
pub.dev
- Flutter Docs on "JSON and serialization"
dart:convert
library docs- Dart Docs
pub run
Motivation #
Usage #
Install the null_safety_percentage
command-line tool either globally or as a dev dependency.
null_safety_percentage
command-line tool #
Keep in mind that how you invoke the null_safety_percentage
depends on how you installed it and whether you are using it from a Flutter or Dart project.
Global installation
If you install null_safety_percentage
globally, you can execute it simply by typing null_safety_percentage lib test
.
dart pub global activate null_safety_percentage # or: flutter pub global activate null_safety_percentage
null_safety_percentage --help
null_safety_percentage --version
null_safety_percentage lib
null_safety_percentage lib test
null_safety_percentage --output-format json lib test
null_safety_percentage --output-format=json lib test
null_safety_percentage --output-format human --verbose lib
As dev dependency
You can run Dart scripts from your dependencies using the dart run
or flutter run
command.
- Add
null_safety_percentage
to yourdev_dependencies
:dart pub add -d null_safety_percentage
orflutter pub add -d null_safety_percentage
. - Run the script
dart run null_safety_percentage lib test
orflutter run null_safety_percentage lib test
. See more example scripts above.
example
#
Don't forget the project's example
folder for a project where you can test the command-line tool.