AFCommand class abstract

Parent for commands executed through the afib command line app.

Implementers

Constructors

AFCommand()

Properties

description → String
no setter
descriptionHeader → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String
no setter
nameOfExecutable → String
no setter
optionsHeader → String
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subcommands → Map<String, AFCommand>
final
usage → String
no setter
usageHeader → String
no setter

Methods

addSubcommand(AFCommand cmd) → void
convertToPrefix(String value, String suffix) → String
errorIfNotProjectRoot(AFCommandContext ctx) → bool
execute(AFCommandContext context) → Future<void>
finalize() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(AFCommandContext ctx) → Future<void>
Override this to implement the command. The first item in the list is the command name.
throwUsageError(String error) → Never
toString() → String
A string representation of this object.
inherited
verifyAllLowercase(String value) → void
verifyAllUppercase(String value) → void
verifyDoesNotEndWith(String value, String excluded) → void
verifyEndsWith(String value, String endsWith) → String
verifyEndsWithOneOf(String value, List<String> suffixes) → void
verifyMixedCase(String value, String valueKindInError) → void
verifyNotEmpty(String value, String msg) → void
verifyNotGenerateConflict(String itemName, List<String> invalidSuffixes, String subcommand) → void
verifyNotOption(String value) → void
verifyOneOf(String value, List<String> oneOf) → void
verifyUsageOption(String value, List<String> options) → void

Operators

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

Static Methods

throwUsageErrorStatic(String error, String usage) → Never