mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
feat(remote): add a command to clear the cache (#1639)
* feat(remote): add a command to clear the cache * Update cmd/task/task.go Co-authored-by: Andrey Nering <andrey@nering.com.br> * rebase --------- Co-authored-by: Andrey Nering <andrey@nering.com.br>
This commit is contained in:
@@ -66,3 +66,7 @@ func (c *Cache) filePath(node Node, suffix string) string {
|
||||
}
|
||||
return filepath.Join(c.dir, fmt.Sprintf("%s.%s.%s", prefix, c.key(node), suffix))
|
||||
}
|
||||
|
||||
func (c *Cache) Clear() error {
|
||||
return os.RemoveAll(c.dir)
|
||||
}
|
||||
|
Reference in New Issue
Block a user