Skip to content

Conversation

@jakemac53
Copy link
Contributor

@jakemac53 jakemac53 commented May 6, 2025

  • Rename DartCliSupport to DashCliSupport
  • Add support for choosing the command to run based on the root it is ran in
    • Defaults to project detection, calling flutter or dart as appropriate.
      • Updated the dart only commands to explicitly use dart always
  • Adds a tool for running tests, which requires this support.

TODO: Add support for some test command arguments such as --name, and possibly platform or other arguments. We may just want to allow general arguments.

jakemac53 added 3 commits May 5, 2025 19:25
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.
@github-actions
Copy link

github-actions bot commented May 6, 2025

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

@auto-submit auto-submit bot merged commit 9d358b9 into main May 7, 2025
22 checks passed
@auto-submit auto-submit bot deleted the project-detection branch May 7, 2025 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants