Skip to content

Commit 282f69a

Browse files
committed
chore(logout): Update CLI docs verbiage to call out env unset behavior.
Signed-off-by: spbsoluble <1661003+spbsoluble@users.noreply.github.com>
1 parent ee1b63e commit 282f69a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/logout.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828
// logoutCmd represents the logout command
2929
var logoutCmd = &cobra.Command{
3030
Use: "logout",
31-
Short: "Removes the credentials file '$HOME/.keyfactor/command_config.json'.",
32-
Long: `Removes the credentials file '$HOME/.keyfactor/command_config.json'.`,
31+
Short: "Unsets environment variables and removes the stored credentials file.",
32+
Long: `Unsets environment variables and removes the stored credentials file.`,
3333
RunE: func(cmd *cobra.Command, args []string) error {
3434
log.Info().Msg("Running logout command")
3535
cmd.SilenceUsage = true
@@ -75,7 +75,7 @@ var logoutCmd = &cobra.Command{
7575
if os.IsNotExist(err) {
7676
log.Error().
7777
Err(err).
78-
Msg("Config file does not exist, unable to logout.")
78+
Msg("config file does not exist, unable to logout")
7979
fmt.Println("Config file does not exist, unable to logout.")
8080
return err
8181
}

0 commit comments

Comments
 (0)