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