mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-11-03 15:45:51 +00:00 
			
		
		
		
	refactor: remove short flags
This commit is contained in:
		@@ -100,7 +100,7 @@ func HandleError(err error, msg string) {
 | 
				
			|||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	rootCmd.AddCommand(cmd.UserCmd())
 | 
						rootCmd.AddCommand(cmd.UserCmd())
 | 
				
			||||||
	viper.AutomaticEnv()
 | 
						viper.AutomaticEnv()
 | 
				
			||||||
	rootCmd.Flags().IntP("port", "p", 3000, "Port to run the server on.")
 | 
						rootCmd.Flags().Int("port", 3000, "Port to run the server on.")
 | 
				
			||||||
	rootCmd.Flags().String("address", "0.0.0.0", "Address to bind the server to.")
 | 
						rootCmd.Flags().String("address", "0.0.0.0", "Address to bind the server to.")
 | 
				
			||||||
	rootCmd.Flags().String("secret", "", "Secret to use for the cookie.")
 | 
						rootCmd.Flags().String("secret", "", "Secret to use for the cookie.")
 | 
				
			||||||
	rootCmd.Flags().String("app-url", "", "The tinyauth URL.")
 | 
						rootCmd.Flags().String("app-url", "", "The tinyauth URL.")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -76,8 +76,8 @@ var CreateCmd = &cobra.Command{
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	CreateCmd.Flags().BoolVarP(&interactive, "interactive", "i", false, "Create a user interactively")
 | 
						CreateCmd.Flags().BoolVar(&interactive, "interactive", false, "Create a user interactively")
 | 
				
			||||||
	CreateCmd.Flags().BoolVarP(&docker, "docker", "d", false, "Format output for docker")
 | 
						CreateCmd.Flags().BoolVar(&docker, "docker", false, "Format output for docker")
 | 
				
			||||||
	CreateCmd.Flags().StringVarP(&username, "username", "u", "", "Username")
 | 
						CreateCmd.Flags().StringVar(&username, "username", "", "Username")
 | 
				
			||||||
	CreateCmd.Flags().StringVarP(&password, "password", "p", "", "Password")
 | 
						CreateCmd.Flags().StringVar(&password, "password", "", "Password")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user