Skip to content
Snippets Groups Projects
Commit 1a376480 authored by Fabian Seidl's avatar Fabian Seidl
Browse files

appplied suggestions to remove unnecessary description

parent 45b286d6
No related branches found
No related tags found
1 merge request!287Implement data persisting for user management
Pipeline #99935 passed
......@@ -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")
}
......@@ -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")
}
......@@ -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")
......
......@@ -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")
}
......@@ -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")
}
......@@ -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")
}
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment