From ee3abc78a6883db8daa49f1b4072047d28459699 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sun, 1 Sep 2024 20:37:23 -0600 Subject: [PATCH] fix: cleanup info command --- pkg/commands/info/info.go | 4 +--- pkg/commands/install/install.go | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/commands/info/info.go b/pkg/commands/info/info.go index 1bd9e4a..865fdba 100644 --- a/pkg/commands/info/info.go +++ b/pkg/commands/info/info.go @@ -36,12 +36,10 @@ func Execute(c *cli.Context) error { log.Infof("distillery/%s", common.AppVersion.Summary) log.Infof(" os: %s", runtime.GOOS) log.Infof(" arch: %s", runtime.GOARCH) - log.Infof(" cache: %s", cacheDir) log.Infof(" home: %s", homeDir) log.Infof(" bin: %s", binDir) log.Infof(" opt: %s", optDir) - log.Infof(" meta: %s", metadataDir) - log.Infof(" downl: %s", downloadsDir) + log.Infof(" cache: %s", filepath.Join(cacheDir, common.NAME)) log.Warnf("To cleanup all of distillery, remove the following directories:") log.Warnf(" - %s", filepath.Join(cacheDir, common.NAME)) diff --git a/pkg/commands/install/install.go b/pkg/commands/install/install.go index c4c0e40..228ba68 100644 --- a/pkg/commands/install/install.go +++ b/pkg/commands/install/install.go @@ -2,7 +2,6 @@ package install import ( "fmt" - "os" "path/filepath" "runtime"