diff --git a/cmd/incinerate.go b/cmd/incinerate.go new file mode 100644 index 0000000..c73001c --- /dev/null +++ b/cmd/incinerate.go @@ -0,0 +1,14 @@ +package cmd + +import ( + "github.com/IcaliaLabs/plis/translation" + "github.com/urfave/cli" + "fmt" +) + +func Incinerate(c *cli.Context) { + cmdArgs := []string{"docker", "system", "prune", "-a", "-f", "--volumes"} + translation.Exec(cmdArgs) + + fmt.Printf("All done! Your OS has been incinerated\n") +} diff --git a/plis.go b/plis.go index 4836443..f34b657 100644 --- a/plis.go +++ b/plis.go @@ -14,6 +14,11 @@ func main() { app.Version = "0.0.0.build11" app.Commands = []cli.Command{ + { + Name: "incinerate", + Usage: "Cleans up all your docker images, networks, volumes", + Action: cmd.Incinerate, + }, { Name: "start", Usage: "Starts the project's containers",