github.com/verrazzano/verrazzano@v1.7.1/tools/vz/cmd/export/export.go (about) 1 // Copyright (c) 2023, Oracle and/or its affiliates. 2 // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 4 package export 5 6 import ( 7 "github.com/spf13/cobra" 8 "github.com/verrazzano/verrazzano/tools/vz/cmd/export/oam" 9 cmdhelpers "github.com/verrazzano/verrazzano/tools/vz/cmd/helpers" 10 "github.com/verrazzano/verrazzano/tools/vz/pkg/helpers" 11 ) 12 13 const ( 14 CommandName = "export" 15 helpShort = "Export content" 16 helpLong = `Export the content of the subcomponent specified` 17 ) 18 19 func NewCmdExport(vzHelper helpers.VZHelper) *cobra.Command { 20 cmd := cmdhelpers.NewCommand(vzHelper, CommandName, helpShort, helpLong) 21 22 // Add commands 23 cmd.AddCommand(oam.NewCmdExportOAM(vzHelper)) 24 25 return cmd 26 }