From 0294e2889add78b5a865f6678abb5b00e3f61789 Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Tue, 19 Apr 2022 12:14:14 +0200 Subject: [PATCH 1/3] Update dart tool info --- src/reference/flutter-cli.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/reference/flutter-cli.md b/src/reference/flutter-cli.md index e608110ddf..d7204baf5b 100644 --- a/src/reference/flutter-cli.md +++ b/src/reference/flutter-cli.md @@ -4,7 +4,8 @@ description: "The reference page for using 'flutter' in a terminal window." --- The `flutter` command-line tool is how developers (or IDEs on behalf of -developers) interact with Flutter. +developers) interact with Flutter. For Dart related commands, +you can use the [`dart`][] command-line tool. Here's how you might use the `flutter` tool to create, analyze, test, and run an app: @@ -45,7 +46,7 @@ The following table shows which commands you can use with the `flutter` tool: |---------+--------------------------------+-----------------------------------| | Command | Example of use | More information | |---------|--------------------------------|-----------------------------------| -| analyze | `flutter analyze -d ` | Analyzes the project's Dart source code.
Use instead of [`dartanalyzer`][]. | +| analyze | `flutter analyze -d ` | Analyzes the project's Dart source code.
Use instead of [`dart analyze`][]. | | assemble | `flutter assemble -o ` | Assemble and build flutter resources. | | attach | `flutter attach -d ` | Attach to a running application. | | bash-completion | `flutter bash-completion` | Output command line shell completion setup scripts. | @@ -58,12 +59,12 @@ The following table shows which commands you can use with the `flutter` tool: | downgrade | `flutter downgrade` | Downgrade Flutter to the last active version for the current channel. | | drive | `flutter drive` | Runs Flutter Driver tests for the current project. | | emulators | `flutter emulators` | List, launch and create emulators. | -| format | `flutter format ` | Formats Flutter source code.
Use instead of [`dartfmt`][]. | +| format | `flutter format ` | Formats Flutter source code.
Use instead of [`dart format`][]. | | gen-l10n | `flutter gen-l10n ` | Generate localizations for the Flutter project. | | install | `flutter install -d ` | Install a Flutter app on an attached device. | | logs | `flutter logs` | Show log output for running Flutter apps. | | precache | `flutter precache ` | Populates the Flutter tool's cache of binary artifacts. | -| pub | `flutter pub ` | Works with packages.
Use instead of [`pub`][]. | +| pub | `flutter pub ` | Works with packages.
Use instead of [`dart pub`][]. | | run | `flutter run ` | Runs a Flutter program. | | symbolize | `flutter symbolize --input=` | Symbolize a stack trace from the AOT compiled flutter application. | | test | `flutter test []` | Runs tests in this package.
Use instead of [`pub run test`][`pub`]. | @@ -75,6 +76,7 @@ or follow the links in the **More information** column. You can also get details on `pub` commands — for example, `flutter help pub outdated`. -[`dartanalyzer`]: {{site.dart-site}}/tools/dartanalyzer -[`dartfmt`]: {{site.dart-site}}/tools/dartfmt -[`pub`]: {{site.dart-site}}/tools/pub/cmd +[`dart`]: {{site.dart-site}}/tools/dart-tool +[`dart analyze`]: {{site.dart-site}}/tools/dart-analyze +[`dart format`]: {{site.dart-site}}/tools/dart-format +[`dart pub`]: {{site.dart-site}}/tools/dart-pub From 7eef4970afd916993d08b87f31ab80702e9cff96 Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Tue, 19 Apr 2022 12:41:13 +0200 Subject: [PATCH 2/3] Fix broken link --- src/reference/flutter-cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reference/flutter-cli.md b/src/reference/flutter-cli.md index d7204baf5b..c3cee7142b 100644 --- a/src/reference/flutter-cli.md +++ b/src/reference/flutter-cli.md @@ -18,7 +18,7 @@ $ flutter test $ flutter run lib/main.dart ``` -To run [`pub`][] commands using the `flutter` tool: +To run [`pub`][`dart pub`] commands using the `flutter` tool: ```terminal $ flutter pub get From 2bc44e2a12edcac6d011efc2a7bfc8ac8e405132 Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Tue, 19 Apr 2022 12:57:20 +0200 Subject: [PATCH 3/3] Fix more links --- src/reference/flutter-cli.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/reference/flutter-cli.md b/src/reference/flutter-cli.md index c3cee7142b..f367c36616 100644 --- a/src/reference/flutter-cli.md +++ b/src/reference/flutter-cli.md @@ -67,7 +67,7 @@ The following table shows which commands you can use with the `flutter` tool: | pub | `flutter pub ` | Works with packages.
Use instead of [`dart pub`][]. | | run | `flutter run ` | Runs a Flutter program. | | symbolize | `flutter symbolize --input=` | Symbolize a stack trace from the AOT compiled flutter application. | -| test | `flutter test []` | Runs tests in this package.
Use instead of [`pub run test`][`pub`]. | +| test | `flutter test []` | Runs tests in this package.
Use instead of [`dart test`][`dart test`]. | | upgrade | `flutter upgrade` | Upgrade your copy of Flutter. | {:.table .table-striped .nowrap} @@ -80,3 +80,4 @@ You can also get details on `pub` commands — for example, [`dart analyze`]: {{site.dart-site}}/tools/dart-analyze [`dart format`]: {{site.dart-site}}/tools/dart-format [`dart pub`]: {{site.dart-site}}/tools/dart-pub +[`dart test`]: {{site.dart-site}}/tools/dart-test