ProjectPurger class
Service that knows exactly which directories Oracular's wizard /
create flow added to SetupConfig.outputDir so they can be deleted
surgically without touching Firebase config, service-account JSON,
the saved setup_config.env, or any user-authored files.
Used by oracular rebuild and the wizard's "rebuild" affordance to
reset the scaffolding without forcing the user back through the
Firebase + IAM gauntlet.
Constructors
- ProjectPurger(SetupConfig config)
Properties
- config → SetupConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dryRun(
) → PurgeReport - Compute (without deleting) every directory the rebuild step would purge. Safe to call on partial / broken projects — missing entries are reported in PurgeReport.alreadyMissing instead of raising.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
purge(
{PurgeReport? plan}) → Future< int> - Delete every directory listed in PurgeReport.directoriesToDelete. Idempotent — directories that disappear between dryRun and purge are silently skipped. Returns the number of directories actually deleted.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited