(opts *ClearCacheOptions)
| 42 | } |
| 43 | |
| 44 | func clearCacheRun(opts *ClearCacheOptions) error { |
| 45 | if err := os.RemoveAll(opts.CacheDir); err != nil { |
| 46 | return err |
| 47 | } |
| 48 | cs := opts.IO.ColorScheme() |
| 49 | fmt.Fprintf(opts.IO.Out, "%s Cleared the cache\n", cs.SuccessIcon()) |
| 50 | return nil |
| 51 | } |