Files
Jonathon Anderson 2ba6e28215 Remove wwctl node import --csv
- Closes #1862

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-07-02 21:25:54 -06:00

28 lines
737 B
Go

package imprt
import (
"github.com/spf13/cobra"
)
var (
baseCmd = &cobra.Command{
DisableFlagsInUseLine: true,
Use: "import [OPTIONS] FILE",
Short: "Import node(s) from yaml FILE",
Long: "This command imports all the nodes defined in a YAML file. It will overwrite nodes with same name.",
RunE: CobraRunE,
Args: cobra.ExactArgs(1),
Aliases: []string{"import"},
}
setYes bool
)
func init() {
baseCmd.PersistentFlags().BoolVarP(&setYes, "yes", "y", false, "Set 'yes' to all questions asked")
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}