Files
warewulf/internal/app/wwctl/genconf/reference/root.go
Jonathon Anderson a80ba8ee01 Configure nodes.conf path dynamically from config
Removes the use of init() to initialize the variable.

- Closes: #1596
- See also: #1569

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-17 11:04:43 -07:00

20 lines
354 B
Go

package reference
import (
"github.com/spf13/cobra"
)
var (
baseCmd = &cobra.Command{
Use: "reference",
Short: "reference generation",
Long: "This command generates the references in ReStructured Text, needs target dir as argument",
RunE: CobraRunE,
Args: cobra.ExactArgs(1),
}
)
func GetCommand() *cobra.Command {
return baseCmd
}