ChassisForge class

since 0.0.1

Inheritance
Annotations

Constructors

ChassisForge()

Properties

arguments List<String>
List of arguments supplied during runWith. Only initialized on invocation of runWith
getter/setter pair
commandRun bool
True if a Command has been run
getter/setter pair
extras List<String>?
List of extras supplied on the command line.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
parent SmartArg?
The Parent SmartArg, or SmartArgCommand instance for the current subcommand.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

afterCommandExecute(SmartArgCommand command) → void
Invoked after a SmartArgCommand is executed
inherited
afterCommandParse(SmartArg command, List<String> arguments) → void
Invoked after the Command parsing has completed.
inherited
beforeCommandExecute(SmartArgCommand command) → void
Invoked before a SmartArgCommand is executed
inherited
beforeCommandParse(SmartArg command, List<String> arguments) → void
Invoked before an annotated Command parsing has started.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onHelp() → void
Prints Forge usage and cleanly exits the program
onUnknownCommand(List<String> arguments) → void
Prints Forge usage and cleanly exits the program with code 1
parse(List<String> arguments) Future<void>
Parse the arguments list populating properties on the SmartArg class.
override
postCommandExecute(SmartArgCommand command) Future<void>
Awaited after a SmartArgCommand is executed
override
postCommandParse(SmartArg command, List<String> arguments) Future<void>
Awaited after the Command parsing has completed.
inherited
preCommandExecute(SmartArgCommand command) Future<void>
Awaited before a SmartArgCommand is executed
inherited
preCommandParse(SmartArg command, List<String> arguments) Future<void>
Awaited before an annotated Command parsing has started.
override
runWith(List<String> arguments) Future<void>
Runs the ChassisForge with the supplied arguments.
setLogLevel(dynamic level) → void
setWorkingDirectory(String workingDirectory) → void
toString() String
A string representation of this object.
inherited
usage() String
Return a string telling the user how to use your application from the command line.
inherited
withEnvironment(Map<String, String> environment) → void
Sets the environment map to be used during argument parsing
inherited

Operators

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