Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APTCmd = &cobra.Command{ Use: "apt", Run: func(cmd *cobra.Command, args []string) { c := exec.Command("sudo", "apt", "autoremove") _errors.Check(c.InteractiveRun()) }, }
View Source
var BrewCmd = &cobra.Command{ Use: "brew", Run: func(cmd *cobra.Command, args []string) { c := exec.Command("brew", "autoremove") _errors.Check(c.InteractiveRun()) c = exec.Command("brew", "cleanup") _errors.Check(c.InteractiveRun()) }, }
View Source
var CacheCmd = &cobra.Command{ Use: "cache", Run: func(cmd *cobra.Command, args []string) { for _, p := range GlobPathes(patterns) { remove.Remove(p) } }, }
View Source
var NpmCmd = &cobra.Command{ Use: "npm", Run: func(cmd *cobra.Command, args []string) { c := exec.Command("pnpm", "store", "prune") _errors.Check(c.InteractiveRun()) }, }
View Source
var PipCmd = &cobra.Command{ Use: "pip", Run: func(cmd *cobra.Command, args []string) { c := exec.Command("conda", "clean", "--all") _errors.Check(c.InteractiveRun()) c = exec.Command("pip", "cache", "purge") _errors.Check(c.InteractiveRun()) }, }
View Source
var RootCmd = &cobra.Command{ Use: "clean", Run: exec.RunCommands, }
Functions ¶
func GlobPathes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.