working commit
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user