diff --git a/cli/cmd/login.go b/cli/cmd/login.go index 917a4d1b87ce437c63d7c55176c08d026d4c279c..3d9aba572e887642340628b92979cffec0662dcf 100644 --- a/cli/cmd/login.go +++ b/cli/cmd/login.go @@ -78,15 +78,6 @@ var nbUserPwd string func init() { rootCmd.AddCommand(loginCmd) - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // loginCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // loginCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") loginCmd.Flags().StringVar(&nbUserName, "u", "", "username for login") loginCmd.Flags().StringVar(&nbUserPwd, "p", "", "pwd for login") } diff --git a/cli/cmd/logout.go b/cli/cmd/logout.go index ff7fec1ad05fc53ab286ff07b2028362fbb8125c..a797c80e58d29b8981fd69f83d2bd120a1c980c5 100644 --- a/cli/cmd/logout.go +++ b/cli/cmd/logout.go @@ -60,14 +60,5 @@ var logoutCmd = &cobra.Command{ func init() { rootCmd.AddCommand(logoutCmd) - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // loginCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // loginCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") logoutCmd.Flags().StringVar(&nbUserName, "u", "", "username for logout") } diff --git a/cli/cmd/userCreate.go b/cli/cmd/userCreate.go index 1a6f142567631557722d52c13ba4980688b8983c..0b64cad0f6d8c2401582ad7b1bc7fc228038db6b 100644 --- a/cli/cmd/userCreate.go +++ b/cli/cmd/userCreate.go @@ -79,15 +79,6 @@ var nbUserRole string func init() { rootCmd.AddCommand(userCreateCmd) - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // loginCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // loginCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") userCreateCmd.Flags().StringVar(&nbUserName, "u", "", "username for login") userCreateCmd.Flags().StringVar(&nbUserPwd, "p", "", "pwd for login") userCreateCmd.Flags().StringVar(&nbUserRole, "r", "", "role for user") diff --git a/cli/cmd/userDelete.go b/cli/cmd/userDelete.go index f981cb5521547eac042512971a8d7a06858a70d7..c8bfb21519f4f5f303ab5ec43a0c5b880437e090 100644 --- a/cli/cmd/userDelete.go +++ b/cli/cmd/userDelete.go @@ -63,14 +63,5 @@ var userDeleteCmd = &cobra.Command{ func init() { rootCmd.AddCommand(userDeleteCmd) - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // loginCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // loginCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") userDeleteCmd.Flags().StringVar(&nbUserName, "u", "", "username to delete") } diff --git a/cli/cmd/userGet.go b/cli/cmd/userGet.go index 807988b87211de1a4428c7fbaf799a0b202331f1..b5f1a0bd9ba21765a81df889fabc182029126615 100644 --- a/cli/cmd/userGet.go +++ b/cli/cmd/userGet.go @@ -62,14 +62,5 @@ var userGetCmd = &cobra.Command{ func init() { rootCmd.AddCommand(userGetCmd) - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // loginCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // loginCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") userGetCmd.Flags().StringVar(&nbUserName, "u", "", "username to find") } diff --git a/cli/cmd/userGetAll.go b/cli/cmd/userGetAll.go index 21c3867eec5ae43d9c5f1a1331ec79b001118bc3..e0719ef78706ee47a1c2679fa812ad73cca7843e 100644 --- a/cli/cmd/userGetAll.go +++ b/cli/cmd/userGetAll.go @@ -63,14 +63,4 @@ var userGetAllCmd = &cobra.Command{ func init() { rootCmd.AddCommand(userGetAllCmd) - - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // loginCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // loginCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") } diff --git a/cli/cmd/userUpdate.go b/cli/cmd/userUpdate.go index 412076cbeb1de7db94032df9d9ed606722fc37a9..a85365a5bdf43a6e81421f552b3a0a4dc6ffa33f 100644 --- a/cli/cmd/userUpdate.go +++ b/cli/cmd/userUpdate.go @@ -80,15 +80,6 @@ var nbUserID string func init() { rootCmd.AddCommand(userUpdateCmd) - // Here you will define your flags and configuration settings. - - // Cobra supports Persistent Flags which will work for this command - // and all subcommands, e.g.: - // loginCmd.PersistentFlags().String("foo", "", "A help for foo") - - // Cobra supports local flags which will only run when this command - // is called directly, e.g.: - // loginCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") userUpdateCmd.Flags().StringVar(&nbUserID, "i", "", "id of the user") userUpdateCmd.Flags().StringVar(&nbUserName, "u", "", "username for login") userUpdateCmd.Flags().StringVar(&nbUserPwd, "p", "", "pwd for login")