CleanCommand class
- Inheritance
-
- Object
- BaseCommand
- CleanCommand
Constructors
Properties
- description → String
-
The human-readable description of what this command does.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- jsonOutput → bool
-
Whether to output in JSON format instead of human-readable text.
no setterinherited
- logger → Logger
-
The logger instance for all output operations.
no setterinherited
- name → String
-
The command name used in CLI (e.g., 'init', 'analyse', 'clean').
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useColors → bool
-
Whether to use ANSI colors in terminal output.
no setterinherited
Methods
-
chooseAny(
String message, List< String> choices, {List<String> ? defaultValues}) → List<String> -
Prompt user to choose multiple options from a list.
inherited
-
chooseOne(
String message, List< String> choices, {String? defaultValue}) → String -
Prompt user to choose one option from a list.
inherited
-
confirm(
String message, {bool defaultValue = false}) → Future< bool> -
Ask for user confirmation (yes/no question).
inherited
-
createProgress(
String message) → Progress -
Create a progress indicator for long-running operations.
inherited
-
execute(
[List< String> args = const []]) → Future<void> -
Execute the command with the given arguments.
override
-
getOptions(
) → String -
Get command-specific options help text.
override
-
initLogger(
{bool jsonOutput = false, bool useColors = true}) → void -
Initialize the command with a logger instance.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printError(
String message) → void -
Print an error message (red text).
inherited
-
printInfo(
String message) → void -
Print an informational message.
inherited
-
printSuccess(
String message) → void -
Print a success message (green text with checkmark).
inherited
-
printUsage(
) → void -
Print usage information for this command.
inherited
-
printWarning(
String message) → void -
Print a warning message (yellow text with warning icon).
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited