CliContext class
Execution context passed across generators and hooks.
Constructors
-
CliContext.new({required String name, required List<
IModuleCodeContributor> selectedModules, required String outputDirectory, required Logger logger, required StrictMode strictMode, required ModuleDependencyResolver moduleResolver, String? packageName, String? initialRoute}) -
Creates a new CliContext.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialRoute → String?
-
Optional initial route for the application.
final
- logger → Logger
-
Logger for interactive feedback and diagnostics.
final
- moduleResolver → ModuleDependencyResolver
-
Resolver for handling module dependencies and ordering.
final
- name → String
-
Human-readable project name.
final
- outputDirectory → String
-
Absolute path where files will be generated.
final
- packageName → String?
-
Optional organization/package name used in identifiers.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedModules
→ List<
IModuleCodeContributor> -
Modules selected by the user for inclusion.
final
- strictMode → StrictMode
-
Strictness mode for generation behavior (errors vs warnings).
final
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