AFCommandRunner class

Provides the set of known commands in a given context, and the ability to run them.

The contexts are afib_bootstrap and your project-specific xxx_afib.dart command.

Constructors

AFCommandRunner(String name, String description)

Properties

all List<AFCommand>
All visible commands.
no setter
commands List<AFCommand>
Commands that are visible in the command line's help summary.
getter/setter pair
commandsHidden List<AFCommand>
Commands that can be executed as part of a project style, but are not visible in the help and are not intended to be run standalone.
getter/setter pair
description String
final
hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCommand(AFCommand command) → void
addHiddenCommand(AFCommand command) → void
findByName(String name) AFCommand?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printUsage({String? error, AFCommand? command}) → void
run(AFCommandContext ctx) Future<void>
Runs the command specified by the arguments in ctx
toString() String
A string representation of this object.
inherited

Operators

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