2019-08-15 16:28:55 -05:00
|
|
|
package document
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
|
|
|
|
"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",
|
|
|
|
}
|
|
|
|
|
2019-12-13 10:31:47 -06:00
|
|
|
documentRootCmd.AddCommand(NewDocumentPullCommand(rootSettings))
|
2019-12-02 13:56:27 +04:00
|
|
|
documentRootCmd.AddCommand(NewRenderCommand(rootSettings))
|
2019-08-15 16:28:55 -05:00
|
|
|
|
|
|
|
return documentRootCmd
|
|
|
|
}
|