commands

package
v0.0.0-...-8f634b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateSuper = command.Command{
	Use:   "createsuperuser",
	Short: "create a super user",
	Long:  "A command for creating a super admin",
	Run: func(c *command.Cmd, s []string) {
		email, _ := c.GetFlag("email")
		password, _ := getPassword("Enter Password : ")
		confirm_password, _ := getPassword("Confirm Password : ")
		if password != confirm_password {
			fmt.Println("passwords doesn't match")
			return
		}
		fmt.Println(email, password)
	},
	Flags: []*command.Flag{
		{
			Requird:    false,
			Name:       "email",
			Short_Name: "e",
			Help_Text:  "user email",
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳