
This adds the "airshipctl document" tree of commands, as well as one of its leaf commands, "generate masterpassphrase". Change-Id: I2365ebe67b38ebbbe4873c6e1beb6407f0e000eb
21 lines
519 B
Go
21 lines
519 B
Go
package generate
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"opendev.org/airship/airshipctl/pkg/environment"
|
|
)
|
|
|
|
// NewGenerateCommand creates a new command for generating secret information
|
|
func NewGenerateCommand(rootSettings *environment.AirshipCTLSettings) *cobra.Command {
|
|
generateRootCmd := &cobra.Command{
|
|
Use: "generate",
|
|
// TODO(howell): Make this more expressive
|
|
Short: "generates various secrets",
|
|
}
|
|
|
|
generateRootCmd.AddCommand(NewGenerateMasterPassphraseCommand(rootSettings))
|
|
|
|
return generateRootCmd
|
|
}
|