Skip to content

Commit

Permalink
Merge pull request #141 from planetscale/iheanyi/login-logout-alias
Browse files Browse the repository at this point in the history
Add LoginCmd and LogoutCmd alias.
  • Loading branch information
iheanyi authored Apr 1, 2021
2 parents 143e54c + be65061 commit 224ea5f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ func Execute(ver, commit, buildDate string) error {
// We don't want to show the default value
rootCmd.PersistentFlags().Lookup("api-token").DefValue = ""

loginCmd := auth.LoginCmd(cfg)
loginCmd.Hidden = true
logoutCmd := auth.LogoutCmd(cfg)
logoutCmd.Hidden = true

rootCmd.AddCommand(loginCmd)
rootCmd.AddCommand(logoutCmd)
rootCmd.AddCommand(auth.AuthCmd(cfg))
rootCmd.AddCommand(backup.BackupCmd(cfg))
rootCmd.AddCommand(branch.BranchCmd(cfg))
Expand Down

0 comments on commit 224ea5f

Please sign in to comment.