UI updates to include "overlay kind"
This commit is contained in:
@@ -4,20 +4,18 @@ import "github.com/spf13/cobra"
|
||||
|
||||
var (
|
||||
baseCmd = &cobra.Command{
|
||||
Use: "import [flags] <overlay name> <source file> [dest location]",
|
||||
Use: "import [flags] <overlay kind> <overlay name> <host source> [overlay target]",
|
||||
Short: "Import a file into a Warewulf Overlay",
|
||||
Long: "This command will import a file into a given Warewulf overlay.",
|
||||
RunE: CobraRunE,
|
||||
Args: cobra.RangeArgs(2, 3),
|
||||
Args: cobra.RangeArgs(3, 4),
|
||||
Aliases: []string{"cp"},
|
||||
}
|
||||
SystemOverlay bool
|
||||
PermMode int32
|
||||
NoOverlayUpdate bool
|
||||
)
|
||||
|
||||
func init() {
|
||||
baseCmd.PersistentFlags().BoolVarP(&SystemOverlay, "system", "s", false, "Show system overlays instead of runtime")
|
||||
baseCmd.PersistentFlags().Int32VarP(&PermMode, "mode", "m", 0755, "Permission mode for directory")
|
||||
baseCmd.PersistentFlags().BoolVarP(&NoOverlayUpdate, "noupdate", "n", false, "Don't update overlays")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user