added wwctl genconfig warewulfconf print

Signed-off-by: Christian Goll <cgoll@suse.de>
This commit is contained in:
Christian Goll
2023-03-03 14:07:26 +01:00
parent 78978ad233
commit 32b4bb74cc
6 changed files with 71 additions and 27 deletions

View File

@@ -0,0 +1,27 @@
package warewulfconf
import (
"github.com/hpcng/warewulf/internal/app/wwctl/genconf/warewulfconf/print"
"github.com/spf13/cobra"
)
var (
baseCmd = &cobra.Command{
Use: "warewulfconf",
Short: "access warewulf.conf",
Long: "Commands for accessing the actual used warewulf.conf",
Args: cobra.ExactArgs(0),
Aliases: []string{"cnf"},
}
ListFull bool
WWctlRoot *cobra.Command
)
func init() {
baseCmd.AddCommand(print.GetCommand())
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}