gen

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL