You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pgo/cmd/user.go
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,6 @@ var userCmd = &cobra.Command{
55
55
Long: `USER allows you to manage users and passwords across a set of clusters. For example:
56
56
57
57
pgo user --selector=name=mycluster --update-passwords
58
-
pgo user --expired=7 --selector=name=mycluster
59
58
pgo user --change-password=bob --selector=name=mycluster --password=newpass`,
60
59
Run: func(cmd*cobra.Command, args []string) {
61
60
log.Debug("user called")
@@ -67,7 +66,7 @@ func init() {
67
66
RootCmd.AddCommand(userCmd)
68
67
69
68
userCmd.Flags().StringVarP(&Selector, "selector", "s", "", "The selector to use for cluster filtering.")
70
-
userCmd.Flags().StringVarP(&Expired, "expired", "", "", "Shows passwords that will expire in X days.")
69
+
userCmd.Flags().StringVarP(&Expired, "expired", "", "", "required flag when updating passwords that will expire in X days using --update-passwords flag.")
71
70
userCmd.Flags().IntVarP(&PasswordAgeDays, "valid-days", "", 30, "Sets passwords for new users to X days.")
72
71
userCmd.Flags().StringVarP(&ChangePasswordForUser, "change-password", "", "", "Updates the password for a user on selective clusters.")
73
72
userCmd.Flags().StringVarP(&UserDBAccess, "db", "", "", "Grants the user access to a database.")
0 commit comments