c2a0359ff9
Future use of secrets will be clunky if it remains as a document subcommand ex: airshipctl document secret generate materpassphrase Refactoring so that secrets are now a top level command IE airshipctl secret ... Change-Id: I781ef5a4e32dc971f275f758d82d17cedd0f74af Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
17 lines
407 B
Go
17 lines
407 B
Go
package generate
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
// NewGenerateCommand creates a new command for generating secret information
|
|
func NewGenerateCommand() *cobra.Command {
|
|
generateRootCmd := &cobra.Command{
|
|
Use: "generate",
|
|
// TODO(howell): Make this more expressive
|
|
Short: "generates various secrets",
|
|
}
|
|
|
|
generateRootCmd.AddCommand(NewGenerateMasterPassphraseCommand())
|
|
|
|
return generateRootCmd
|
|
}
|