AutomaticVersionUpgraderCommandRunner class Null safety
A CommandRunner for the Automatic Version Upgrader CLI.
- Inheritance
-
- Object
- CommandRunner<
int> - AutomaticVersionUpgraderCommandRunner
Constructors
- AutomaticVersionUpgraderCommandRunner({Analytics? analytics, Logger? logger, PubUpdater? pubUpdater})
- A CommandRunner for the Automatic Version Upgrader CLI.
Properties
- argParser → ArgParser
-
The top-level argument parser.
read-only, inherited
-
commands
→ Map<
String, Command< int> > -
An unmodifiable view of all top-level commands defined for this runner.
read-only, inherited
- description → String
-
A short description of this executable.
final, inherited
- executableName → String
-
The name of the executable being run.
final, inherited
- hashCode → int
-
The hash code for this object.
read-only, inherited
- invocation → String
-
A single-line template for how to invoke this executable.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- suggestionDistanceLimit → int
-
The maximum edit distance allowed when suggesting possible intended
commands.
final, inherited
- usage → String
-
Generates a string displaying usage information for the executable.
read-only, inherited
-
An optional footer for usage.
read-only, inherited
Methods
-
addCommand(
Command< int> command) → void -
Adds Command as a top-level command to this runner.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
parse(
Iterable< String> args) → ArgResults -
Parses
args
and returns the result, converting an ArgParserException to a UsageException.inherited -
printUsage(
) → void -
Prints the usage information for this runner.
inherited
-
run(
Iterable< String> args) → Future<int> -
Parses
args
and invokes Command.run on the chosen command.override -
runCommand(
ArgResults topLevelResults) → Future< int?> -
Runs the command specified by
topLevelResults
.override -
toString(
) → String -
A string representation of this object.
inherited
-
usageException(
String message) → Never -
Throws a UsageException with
message
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited