mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:17:55 +00:00
Dartdev - have the migrate command appear under dart help
, without the --verbose
flag
Change-Id: I69b1ca05d133fb0ba23306bd1058bbdb02a88b93 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/146441 Reviewed-by: Michael Thomsen <mit@google.com> Reviewed-by: Paul Berry <paulberry@google.com> Commit-Queue: Jaime Wren <jwren@google.com>
This commit is contained in:
parent
c27da7da14
commit
7d87d3baa4
|
@ -30,7 +30,7 @@ class DartdevRunner<int> extends CommandRunner {
|
|||
addCommand(AnalyzeCommand(verbose: verbose));
|
||||
addCommand(CreateCommand(verbose: verbose));
|
||||
addCommand(FormatCommand(verbose: verbose));
|
||||
addCommand(MigrateCommand(logProvider: () => log, hidden: !verbose));
|
||||
addCommand(MigrateCommand(logProvider: () => log));
|
||||
addCommand(PubCommand(verbose: verbose));
|
||||
addCommand(RunCommand(verbose: verbose));
|
||||
addCommand(TestCommand(verbose: verbose));
|
||||
|
|
|
@ -54,7 +54,7 @@ void help() {
|
|||
expect(result.stdout, contains('analyze '));
|
||||
expect(result.stdout, contains('create '));
|
||||
expect(result.stdout, contains('format '));
|
||||
expect(result.stdout, isNot(contains('migrate ')));
|
||||
expect(result.stdout, contains('migrate '));
|
||||
});
|
||||
|
||||
test('--help --verbose', () {
|
||||
|
|
|
@ -57,7 +57,8 @@ class MigrateCommand extends Command {
|
|||
|
||||
@override
|
||||
String get description =>
|
||||
'Perform a null safety migration on a project or package.';
|
||||
'Perform a null safety migration on a project or package. The migrate '
|
||||
'feature is in preview, and not yet complete. We welcome feedback.';
|
||||
|
||||
@override
|
||||
String get invocation {
|
||||
|
|
Loading…
Reference in a new issue