AFCommandLibraryExtensionContext class
Context for registering commands, and source templates
Second phase of AFib extention. Can register custom commands, which will be available via your bin/xxx_afib.dart command. Can also register custom source templates and snippets used during code generation.
- Inheritance
-
- Object
- AFBaseExtensionContext
- AFCommandLibraryExtensionContext
- Implementers
Constructors
- AFCommandLibraryExtensionContext({required AFDartParams paramsD, required AFCommandRunner commands, required AFTemplateRegistry templates})
Properties
- commands → AFCommandRunner
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- paramsD → AFDartParams
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- templates → AFTemplateRegistry
-
final
Methods
-
defineCommand(
AFCommand command, {}) → AFCommand - Used to register a new root level command command line.
-
findCommandByType<
T extends AFCommand> () → AFCommand? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerConfigurationItem(
AFConfigurationItem entry) → void -
Used to register a configuration item that appears in xxx_config.g.dart.
inherited
-
registerLibrary(
AFLibraryID id) → void -
Used to register the exists of an integrated AFib-aware library.
inherited
-
registerTemplateFile(
AFFileSourceTemplate source) → void -
registerTemplateSnippet(
AFSnippetSourceTemplate source) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited