Command class abstract
Defines the contract for commands supported by FKIT.
Implementations provide command metadata, usage information, optional aliases and examples, and the logic executed when the command is invoked.
Constructors
- Command()
Properties
-
aliases
→ List<
String> -
Alternative names that can be used to invoke the command.
no setter
- category → CommandCategory
-
The category used to group the command.
no setter
- description → String
-
A short description of what the command does.
no setter
-
examples
→ List<
String> -
Example invocations demonstrating how to use the command.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
Whether the command should be excluded from standard command listings.
no setter
- name → String
-
The name used to invoke the command.
no setter
- requiresConfig → bool
-
Whether the command requires an FKIT configuration file.
no setter
- requiresFlutterProject → bool
-
Whether the command must be executed inside a Flutter project.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usage → String
-
The usage syntax displayed in help output.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
List< String> args) → Future<void> -
Executes the command using the provided command-line
args. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited