Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "desktop-cleanup", Short: "Clean up desktop", Args: cobra.NoArgs, Run: func(c *cobra.Command, args []string) { dockerUp, _ := docker_utils.Ping() if dockerUp { registerSh("docker system prune --force") } registerRm(".minikube/cache") if FlagYesYarnCache { registerRm("./Library/Caches/Yarn/*") } registerRm("./Library/Caches/pip/*") if FlagYesGoBuildCache { registerRm("./Library/Caches/go-build/*") } if FlagBrewCache { registerRm("./Library/Caches/Homebrew/*") } if FlagYesGoPkgModCache { registerRm("./go/pkg/mod/cache/*") } registerRm(".nvm/.cache/*") if FlagTerraformPluginDir { registerRm(".terraform-plugin-cache/*") } registerRm("./Library/Caches/lima/") for _, script := range ListSh { fmt.Println(script) } for _, rmParam := range ListRm { fmt.Println("rm -rf", rmParam) } if FlagDryRun { os.Exit(0) } fmt.Println("Wait for 10 seconds... cancel using ctrl+c") time.Sleep(10 * time.Second) for _, script := range ListSh { sh(script) } for _, rmParam := range ListRm { rm(rmParam) } }, }
View Source
var FlagBrewCache bool
View Source
var FlagDryRun bool
View Source
var FlagTerraformPluginDir bool
View Source
var FlagYesGoBuildCache bool
View Source
var FlagYesGoPkgModCache bool
View Source
var FlagYesYarnCache bool
View Source
var ListRm []string
View Source
var ListSh []string
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.