de4e077ac6
Shows a progress update on the interactive terminal for running hooks. The progress update visually aligns with progress updates from pub `Building package executable... (1.3s)` as `Running build hooks... (0.7s)`. Closes: https://github.com/dart-lang/native/issues/2439 Progress updates visibility: * `dart run`, only if there are hooks to avoid cluttering stdout more. https://github.com/dart-lang/sdk/issues/61696 * `dart test`, also only if there are any hooks. * `dart build`, always show progress update lines. * `dart install`, always show progress updates lines. * `dart compile`, changed the check to check for the existence of hooks but don't ever run them. This CL also renames some "native assets" to "build hooks". This CL also fixes an issue with `dart test` run without `pub get` in a Flutter project. Closes: https://github.com/dart-lang/sdk/issues/61697 Change-Id: I88f6e07dff1d4f5c0733f83f073640b75cc54e79 Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-arm64-try,pkg-linux-release-try,pkg-mac-release-arm64-try,pkg-mac-release-try,pkg-win-release-arm64-try,pkg-win-release-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/453920 Reviewed-by: Michael Goderbauer <goderbauer@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com>
Dart CLI tooling
A command-line utility for Dart development.
Usage: dart <command|dart-file> [arguments]
Global options:
-v, --verbose Show additional command output.
--version Print the Dart SDK version.
--enable-analytics Enable analytics.
--disable-analytics Disable analytics.
--suppress-analytics Disallow analytics for this `dart *` run without changing the analytics configuration.
-h, --help Print this usage information.
Available commands:
analyze Analyze Dart code in a directory.
compile Compile Dart to various formats.
create Create a new Dart project.
devtools Open DevTools (optionally connecting to an existing application).
doc Generate API documentation for Dart projects.
fix Apply automated fixes to Dart source code.
format Idiomatically format Dart source code.
info Show diagnostic information about the installed tooling.
pub Work with packages.
run Run a Dart program.
test Run tests for a project.
Run "dart help <command>" for more information about a command.
See https://dart.dev/tools/dart-tool for detailed documentation.
Contributing
If you'd like to contribute to the Dart CLI tool, please start by reading the contribution guidelines for the Dart project. Then familiarize yourself with the design principles that guide this tool's UX.
Features and bugs
Please file feature requests and bugs in the Dart SDK issue tracker
with label area-dart-cli.