Skip to content

Commit cdfaa8d

Browse files
committed
Clean Command Implementation
1 parent 9212dc9 commit cdfaa8d

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

src/commands/clean.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package commands
2+
3+
import (
4+
"os"
5+
"fmt"
6+
"bread/src/helpers/utils"
7+
)
8+
9+
type CleanCmd struct {
10+
}
11+
12+
func (cmd *CleanCmd) Run() (err error) {
13+
appTempDir, err := utils.MakeTempAppDirPath()
14+
if err != nil {
15+
return err
16+
}
17+
18+
os.RemoveAll(appTempDir)
19+
fmt.Println("Cleaned All The Cache!")
20+
return nil
21+
}

0 commit comments

Comments
 (0)