Skip to content

Commit

Permalink
removed extraneous comment, adjust config location
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasticrabbit committed Oct 26, 2021
1 parent 10e4be0 commit cb6c94d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ import (
"github.com/spf13/viper"
)

// logoutCmd represents the logout command
var logoutCmd = &cobra.Command{
Use: "logout",
Short: "Log out of a Clickup workspace",
Long: `logout allows the user to delete the access token for accessing a Clickup workspace`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("deleted authentication token")
viper.Set("ctoken", "")
viper.WriteConfigAs(home + "/.clickup.yaml")
viper.WriteConfigAs(home + "/.clickup/config.yaml")
},
}

Expand Down

0 comments on commit cb6c94d

Please sign in to comment.