CommandRegistration class

Wraps a Command with registry metadata.

Constructors

CommandRegistration({required Command command, required CommandCategory category, List<String> extraAliases = const [], bool hidden = false, bool requiresAuth = false, bool requiresGit = false, int executionCount = 0, DateTime? lastExecutedAt})

Properties

allAliases → List<String>
All aliases (command-defined + extra).
no setter
category → CommandCategory
Logical category.
final
command → Command
The underlying command instance.
final
executionCount ↔ int
Number of times this command has been executed.
getter/setter pair
extraAliases → List<String>
Additional aliases beyond what the command itself declares.
final
hashCode → int
The hash code for this object.
no setterinherited
hidden → bool
Whether this command is hidden from help output.
final
isVisible → bool
Whether this command should appear in help/completions.
no setter
lastExecutedAt ↔ DateTime?
Timestamp of last execution.
getter/setter pair
name → String
Command name.
no setter
requiresAuth → bool
Whether this command requires authentication.
final
requiresGit → bool
Whether this command requires a git repository context.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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