[tool] Add command aliases (#4207)

Adds aliases for all commands that put the verb first, since currently they are inconsistent which can make it hard to remember (in particular, I often write `check-foo` instead of `foo-check` when running locally, and it fails).

Also does the long-overdue renaming of `test` to `dart-test`, since we now have `native-test`, `custom-test`, etc. `test` continues to work as an alias for individual muscle memory.
This commit is contained in:
stuartmorgan
2023-06-16 09:01:25 -04:00
committed by GitHub
parent 754405dc07
commit 59d93d64cb
17 changed files with 81 additions and 27 deletions

View File

@ -23,6 +23,9 @@ class GradleCheckCommand extends PackageLoopingCommand {
@override
final String name = 'gradle-check';
@override
List<String> get aliases => <String>['check-gradle'];
@override
final String description =
'Checks that gradle files follow repository conventions.';