master
1package generate
2
3import (
4 "github.com/kahnwong/swissknife/internal/generate"
5 "github.com/spf13/cobra"
6)
7
8var generateKeyCmd = &cobra.Command{
9 Use: "key",
10 Short: "Generate key",
11 Long: `Generate key. Re-implementation of "openssl rand -base64 48"". Result is copied to clipboard.`,
12 RunE: func(cmd *cobra.Command, args []string) error {
13 return generate.Key()
14 },
15}
16
17func init() {
18 Cmd.AddCommand(generateKeyCmd)
19}