Minor cleanups and fleshed out the wwctl overlay show command

This commit is contained in:
Gregory Kurtzer
2020-11-19 16:56:22 -08:00
parent e9132cf6f7
commit f87708784d
12 changed files with 133 additions and 605 deletions

View File

@@ -1,7 +1,6 @@
package show
import (
"fmt"
"github.com/spf13/cobra"
)
@@ -11,21 +10,17 @@ var (
Short: "Show Warewulf Overlay objects",
Long: "Warewulf show overlay objects",
RunE: CobraRunE,
Aliases: []string{"cat"},
Args: cobra.ExactArgs(2),
}
SystemOverlay bool
)
func init() {
baseCmd.PersistentFlags().BoolVarP(&SystemOverlay, "system", "s", false, "Show System Overlays as well")
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}
func CobraRunE(cmd *cobra.Command, args []string) error {
fmt.Printf("Show: Hello World\n")
return nil
}