working commit

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