Skip to content

Commit 30b8b50

Browse files
committed
fix: add file removal to clear method
1 parent 724c1df commit 30b8b50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/clear.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package cmd
22

33
import (
4+
"os"
5+
46
"github.com/dnitsch/aws-cli-auth/internal/util"
57
"github.com/dnitsch/aws-cli-auth/internal/web"
68
"github.com/spf13/cobra"
@@ -34,4 +36,7 @@ func clear(cmd *cobra.Command, args []string) {
3436
}
3537
secretStore.ClearAll()
3638

39+
if err := os.Remove(util.ConfigIniFile()); err != nil {
40+
util.Exit(err)
41+
}
3742
}

0 commit comments

Comments
 (0)