var theArgs … var theFlags … type Help … func MakeHelp(pgmName, cmdName string) *Help { … } // NewCmdBuild creates a new build command. func NewCmdBuild( fSys filesys.FileSystem, help *Help, writer io.Writer) *cobra.Command { … } // Validate validates build command args and flags. func Validate(args []string) error { … } // HonorKustomizeFlags feeds command line data to the krusty options. // Flags and such are held in private package variables. func HonorKustomizeFlags(kOpts *krusty.Options, flags *flag.FlagSet) *krusty.Options { … }