dart_apitool 0.2.0 dart_apitool: ^0.2.0 copied to clipboard
A tool for Dart APIs. It allows to create a model of the public API of a given package as well as comparing two different models and provide the needed version jump.
Examples for dart-apitool #
Installation #
dart pub global activate dart_apitool
Examples #
Check pub version against current source ignoring the pre-release tag #
The current source contains a pre-release tag that gets ignored in this check (the current version gets treated as if it wouldn't have the pre-release part). This is done in CI to check the state of the current version once it will be officially released
dart-apitool diff --old pub://dart_apitool/0.1.2 --new . --ignore-prerelease on
Extract public API and use it (later) to check #
extract
dart-apitool extract --input . --output publicApi.json
check
dart-apitool diff --old publicApi.json --new . --ignore-prerelease on
Compare two copies #
dart-apitool diff --old [path to old version] --new . --ignore-prerelease on