From f79c1158da3bb1d6e8a897abd49756399533de80 Mon Sep 17 00:00:00 2001 From: Maina Wycliffe Date: Mon, 20 Jul 2020 12:01:36 +0300 Subject: [PATCH] Nest the Update User Command Unders Users Path This makes it more intuitive to use as it is grouped with the rest of related commands. #14 --- cmd/updateUser.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/updateUser.go b/cmd/updateUser.go index 2ad6c18..890118c 100644 --- a/cmd/updateUser.go +++ b/cmd/updateUser.go @@ -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) { @@ -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")