[et] Fixup help text a bit (flutter/engine#51930)

The multiline string literal retains the newlines.
This commit is contained in:
Zachary Anderson
2024-04-05 16:23:12 +00:00
committed by GitHub
parent cc16f5d2da
commit 72ea5c99e3
4 changed files with 22 additions and 14 deletions

View File

@@ -41,9 +41,11 @@ final class BuildCommand extends CommandBase {
String get name => 'build';
@override
String get description => 'Builds the engine'
'et build //flutter/fml/... # Build all targets in `//flutter/fml/`'
'et build //flutter/fml:fml_benchmarks # Build a specific target in `//flutter/fml/`';
String get description => '''
Builds the engine
et build //flutter/fml/... # Build all targets in `//flutter/fml/`
et build //flutter/fml:fml_benchmarks # Build a specific target in `//flutter/fml/`
''';
@override
Future<int> run() async {

View File

@@ -163,9 +163,11 @@ final class QueryTargetsCommand extends CommandBase {
String get name => 'targets';
@override
String get description => 'Provides information about build targets'
'et query targets --testonly # List only test targets'
'et query targets //flutter/fml/... # List all targets under `//flutter/fml`';
String get description => '''
Provides information about build targets
et query targets --testonly # List only test targets
et query targets //flutter/fml/... # List all targets under `//flutter/fml`
''';
@override
Future<int> run() async {

View File

@@ -42,11 +42,13 @@ final class RunCommand extends CommandBase {
String get name => 'run';
@override
String get description => 'Run a Flutter app with a local engine build. '
'All arguments after -- are forwarded to flutter run, e.g.: '
'et run -- --profile '
'et run -- -d macos '
'See `flutter run --help` for a listing';
String get description => '''
Run a Flutter app with a local engine build.
All arguments after -- are forwarded to flutter run, e.g.:
et run -- --profile
et run -- -d macos
See `flutter run --help` for a listing
''';
Build? _lookup(String configName) {
final String demangledName = demangleConfigName(environment, configName);

View File

@@ -37,9 +37,11 @@ final class TestCommand extends CommandBase {
String get name => 'test';
@override
String get description => 'Runs a test target'
'et test //flutter/fml/... # Run all test targets in `//flutter/fml/`'
'et test //flutter/fml:fml_benchmarks # Run a single test target in `//flutter/fml/`';
String get description => '''
Runs a test target
et test //flutter/fml/... # Run all test targets in `//flutter/fml/`
et test //flutter/fml:fml_benchmarks # Run a single test target in `//flutter/fml/`
''';
@override
Future<int> run() async {