Shell class
Enterpoint of this library
Constructors
- Shell({ShellPrompt? prompt})
- construct
Properties
-
commands
→ Map<
String, ShellCommand> -
dict about
ShellCommand
final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addCommand(
String name, ShellCommand command) → void -
cancel(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAutocomplete(
String input) → Future< List< AutocompleteOption> > - get autocomplete on commands
-
onSubmit(
String value) → FutureOr< void> - resovler command-key to command run ShellCommand.execute
-
run(
) → StreamSubscription< List< int> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited