Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
Nest the Update User Command Unders Users Path
Browse files Browse the repository at this point in the history
This makes it more intuitive to use as it is grouped with the rest of
related commands.

#14
  • Loading branch information
mainawycliffe committed Jul 20, 2020
1 parent 157a6b7 commit f79c115
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/updateUser.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (

// updateUserCmd represents the updateUser command
var updateUserCmd = &cobra.Command{
Use: "updateUser",
Aliases: []string{"update", "update-user"},
Use: "update",
Aliases: []string{"updateUser", "update-user"},
Short: "Update User Details",
Long: `Updates an existing Firebase users details given the UID`,
Run: func(cmd *cobra.Command, args []string) {
Expand Down Expand Up @@ -85,7 +85,7 @@ var updateUserCmd = &cobra.Command{
}

func init() {
authCmd.AddCommand(updateUserCmd)
listUsersCmd.AddCommand(updateUserCmd)
updateUserCmd.Flags().String("email", "", "the email of the user (Required)")
updateUserCmd.Flags().String("password", "", "the password of user (Required)")
updateUserCmd.Flags().Bool("emailVerified", false, "is the email verified")
Expand Down

0 comments on commit f79c115

Please sign in to comment.