working commit

This commit is contained in:
2026-01-29 15:22:15 +02:00
parent a127ddce8b
commit 6872aebe57
9 changed files with 718 additions and 2 deletions
+5 -2
View File
@@ -3,6 +3,7 @@ package main
import (
"fmt"
"os"
"path/filepath"
"github.com/spf13/cobra"
"sigs.k8s.io/yaml"
@@ -33,9 +34,11 @@ func NewUtil() *Util {
func (util *Util) Build() error {
var err error
execName := filepath.Base(os.Args[0])
rootCmd := cobra.Command{
Use: "cmd",
Short: "A brief description the command",
Use: execName,
Short: "\nA brief description the command",
SilenceUsage: true,
}
rootCmd.CompletionOptions.DisableDefaultCmd = true
rootCmd.AddCommand(util.CreateFileCmds())