BaseArgCommand class abstract

Defines a base command that parses command-line arguments before execution.

Inheritance
Implementers

Constructors

BaseArgCommand()

Properties

aliases → List<String>
Alternative names that can be used to invoke the command.
no setterinherited
category → CommandCategory
The category used to group the command.
no setterinherited
description → String
A short description of what the command does.
no setterinherited
examples → List<String>
Example invocations demonstrating how to use the command.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hidden → bool
Whether the command should be excluded from standard command listings.
no setterinherited
name → String
The name used to invoke the command.
no setterinherited
requiresConfig → bool
Whether the command requires an FKIT configuration file.
no setterinherited
requiresFlutterProject → bool
Whether the command must be executed inside a Flutter project.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
usage → String
The usage syntax displayed in help output.
no setterinherited

Methods

buildParser() → ArgParser
Creates the argument parser used by this command.
execute(ArgResults results) → Future<void>
Executes the command using the parsed results.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(List<String> args) → Future<void>
Parses the provided command-line args and executes the command.
override
toString() → String
A string representation of this object.
inherited

Operators

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