added wwctl genconf used to generate completions
Signed-off-by: Christian Goll <cgoll@suse.de>
This commit is contained in:
22
internal/app/wwctl/genconf/completions/root.go
Normal file
22
internal/app/wwctl/genconf/completions/root.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package completions
|
||||
|
||||
import "github.com/spf13/cobra"
|
||||
|
||||
var (
|
||||
baseCmd = &cobra.Command{
|
||||
Use: "completions",
|
||||
Short: "shell completion",
|
||||
Long: "This command generates the bash completions if no argument is given.",
|
||||
RunE: CobraRunE,
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
Aliases: []string{"bash"},
|
||||
}
|
||||
Zsh bool
|
||||
)
|
||||
|
||||
func init() {
|
||||
}
|
||||
|
||||
func GetCommand() *cobra.Command {
|
||||
return baseCmd
|
||||
}
|
||||
Reference in New Issue
Block a user