Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Gen = &cobra.Command{ Use: "gen", Short: "generate key etc.", Long: "This command is used to generate some information, etc random string.", Args: func(cmd *cobra.Command, args []string) error { if length <= 0 { return errors.New("use --rand(-r) to specify length of random string\n") } return nil }, Run: func(cmd *cobra.Command, args []string) { fmt.Println(utils.RandomStringFrom(length, chars)) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.