30 lines
733 B
Go
30 lines
733 B
Go
package warewulfconf
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
"github.com/warewulf/warewulf/internal/app/wwctl/completions"
|
|
"github.com/warewulf/warewulf/internal/app/wwctl/genconf/warewulfconf/print"
|
|
)
|
|
|
|
var (
|
|
baseCmd = &cobra.Command{
|
|
Use: "warewulfconf",
|
|
Short: "access warewulf.conf",
|
|
Long: "Commands for accessing the actual used warewulf.conf",
|
|
Args: cobra.NoArgs,
|
|
Aliases: []string{"cnf"},
|
|
ValidArgsFunction: completions.None,
|
|
}
|
|
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
|
|
}
|