9e2d6932f6
This adds the "airshipctl document" tree of commands, as well as one of its leaf commands, "generate masterpassphrase". Change-Id: I2365ebe67b38ebbbe4873c6e1beb6407f0e000eb
21 lines
522 B
Go
21 lines
522 B
Go
package document
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"opendev.org/airship/airshipctl/cmd/document/secret"
|
|
"opendev.org/airship/airshipctl/pkg/environment"
|
|
)
|
|
|
|
// NewDocumentCommand creates a new command for managing airshipctl documents
|
|
func NewDocumentCommand(rootSettings *environment.AirshipCTLSettings) *cobra.Command {
|
|
documentRootCmd := &cobra.Command{
|
|
Use: "document",
|
|
Short: "manages deployment documents",
|
|
}
|
|
|
|
documentRootCmd.AddCommand(secret.NewSecretCommand(rootSettings))
|
|
|
|
return documentRootCmd
|
|
}
|