From fcd5c1c14b62d7858d1309b88d791078b69ee9bb Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Fri, 2 Dec 2022 12:45:34 -0800 Subject: [PATCH] Add info logs to fix command --- fix.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fix.go b/fix.go index f30bfc9..f70f803 100644 --- a/fix.go +++ b/fix.go @@ -14,11 +14,15 @@ import ( func fixCmd(c *cli.Context) error { gdb.Close() + log.Info("Removing cache directory").Send() + err := os.RemoveAll(config.CacheDir) if err != nil { log.Fatal("Unable to remove cache directory").Err(err).Send() } + log.Info("Rebuilding cache").Send() + err = os.MkdirAll(config.CacheDir, 0o755) if err != nil { log.Fatal("Unable to create new cache directory").Err(err).Send() @@ -42,5 +46,7 @@ func fixCmd(c *cli.Context) error { log.Fatal("Error pulling repos").Err(err).Send() } + log.Info("Done").Send() + return nil }