Documentation
¶
Overview ¶
Package scrub provides the cleanup functionality for the development environment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ScrubCmd = &cobra.Command{ Use: "scrub", Short: "Deep cleans the development environment (Docker, Nix, Caches).", Long: `Performs a "Scorched Earth" cleanup of the development environment. Targeting: - Android Emulator & SDK artifacts (.emu, .androidsdkroot) - Go build and module caches - Docker system (prune all) - Nix garbage (old generations) - General user cache (~/.cache) WARNING: This is destructive and will remove cached data to free up space.`, RunE: func(cmd *cobra.Command, _ []string) error { presenter := ui.NewPresenter(cmd.OutOrStdout(), cmd.ErrOrStderr()) ctx := cmd.Context() presenter.Warning("INITIATING DEEP CLEANUP PROTOCOL") presenter.Warning("This will wipe Docker images, Go caches, and Nix garbage.") if !globals.AssumeYes { confirmed, err := presenter.PromptForConfirmation("Are you sure you want to proceed?") if err != nil || !confirmed { presenter.Info("Scrub aborted.") return nil } } cleanAndroid(ctx, presenter) cleanGo(ctx, presenter) cleanDocker(ctx, presenter) cleanNix(ctx, presenter) cleanUserCache(presenter) presenter.Header("--- Final Disk Usage ---") _ = globals.ExecClient.Execute(ctx, ".", "du", "-h", "--max-depth=1", ".") presenter.Success("Cleanup Complete. You are ready to build.") return nil }, }
ScrubCmd represents the scrub command.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.