RepositoryGenerator class

Core Repository Generator responsible for creating repository files and initializing Git.

Constructors

RepositoryGenerator({FileUtils fileUtils = const SystemFileUtils(), GitService? gitService, RepositoryFileGenerator? fileGenerator, Logger? logger})
Creates a RepositoryGenerator with dependencies.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildPlan({required RepositoryOptions options, required TemplateContext context, required String outputDirectory, OverwritePolicy overwritePolicy = OverwritePolicy.fail}) → RepositoryGenerationPlan
Constructs an in-memory inspectable RepositoryGenerationPlan without mutating the filesystem.
execute({required RepositoryGenerationPlan plan, bool dryRun = false}) → Future<RepositoryGenerationResult>
Executes plan against filesystem and Git.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validateOptions(RepositoryOptions options) → void
Validates options using core validation framework.

Operators

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