TaskCommand class
Properties
-
aliases
→ List<String>
-
Optional aliases that map to the same command.
no setterinherited
-
description
→ String
-
One-line description for help output.
no setter
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
name
→ String
-
The primary token used to invoke this command.
no setter
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
run(CliContext ctx)
→ Future<int>
-
Attempts to run an arbitrary task by name as a top-level command.
Returns fallback command if task is not defined.
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
runCommand({required CliInvocation invocation, required Logger logger, required WorkspaceConfig workspaceConfig, required TaskExecutor executor, required GroupStore groupStore, required CommandEnvironmentBuilder envBuilder, required PluginResolver plugins, required Future<int> fallbackCommand()})
→ Future<int>
-