Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
fix errors in auth command and options, update .gitingore
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Mar 10, 2022
1 parent a3694d8 commit dd6f0fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ vendor
dist
core/lib
tmp
!/pkg/tmp

# Other
.DS_Store
oclif.manifest.json
date.txt
tag.txt
4 changes: 2 additions & 2 deletions app/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func LogoutCMD() *cobra.Command {
Short: "Logout of the current user account.",
Long: "Logout of the current user account.",
RunE: func(cmd *cobra.Command, args []string) error {
if AuthOpts.LogoutYes {
if AuthOpts.ConfirmLogout {
gosh.Run("sc logout")
msg := "✔ Logged out successfully"

Expand All @@ -75,7 +75,7 @@ func LogoutCMD() *cobra.Command {
},
}

cmd.Flags().BoolVarP(&AuthOpts.LogoutYes, "yes", "y", false, "Logout without confirmation.")
cmd.Flags().BoolVarP(&AuthOpts.ConfirmLogout, "yes", "y", false, "Logout without confirmation.")

return cmd
}
Expand Down
1 change: 0 additions & 1 deletion app/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ var PwOpts = options.PasswordsOptions{
Servers: false,
ShowHidden: false,
ShowJsonView: false,
ShowTreeView: false,
}

var GenOpts = options.GenOptions{
Expand Down

0 comments on commit dd6f0fc

Please sign in to comment.