Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AddCmd = &cobra.Command{
Use: "add",
Short: "add components to the IdP",
}
AddCmd represents the add command
View Source
var HashCmd = &cobra.Command{ Use: "hash", Short: "hashes a password for use with example user store", RunE: func(cmd *cobra.Command, args []string) error { fmt.Print("Enter Password: ") bytePassword, err := terminal.ReadPassword(int(syscall.Stdin)) if err != nil { return err } hashedPassword, err := hashPassword(bytePassword) if err != nil { return err } fmt.Println() fmt.Println(string(hashedPassword)) return nil }, }
HashCmd represents the hash command
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.