ShellBinCommand class

Shell command base class

Constructors

ShellBinCommand({required String name, Version? version, ArgParser? parser, ShellBinCommand? parent, String? description})
Shell bin command

Properties

description String?
Description of the command
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
Name of the command
getter/setter pair
parent ShellBinCommand?
Optional parent
getter/setter pair
parser → ArgParser
Default parser
no setter
results ↔ ArgResults
Parser results
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verbose bool
Set before run
no setter
version → Version?
Version of the command
no setter

Methods

addCommand(ShellBinCommand command) → void
Add a command
getFlag(String name) bool
Get a flag
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onRun() FutureOr<bool>
To override
parse(List<String> arguments) → ArgResults
Parse the arguments
parseAndRun(List<String> arguments) FutureOr<bool>
Parse and run the command
printBaseUsage() → void
Print the base usage
printCommands() → void
Prepend an em
printNameDescription() → void
print the name and description
printUsage() → void
Print the usage
run() FutureOr<bool>
Run
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited