in pkg/kepctl/commands/commands.go [31:62]
func New() *cobra.Command {
cmd := &cobra.Command{
Use: "kepctl",
Short: "kepctl helps you build KEPs",
PersistentPreRunE: initLogging,
}
cmd.PersistentFlags().StringVar(
&rootOpts.LogLevel,
"log-level",
"info",
fmt.Sprintf("the logging verbosity, either %s", log.LevelNames()),
)
// TODO: This should be defaulted in the package instead
cmd.PersistentFlags().StringVar(
&rootOpts.RepoPath,
"repo-path",
os.Getenv("ENHANCEMENTS_PATH"),
"path to kubernetes/enhancements",
)
cmd.PersistentFlags().StringVar(
&rootOpts.TokenPath,
"gh-token-path",
"",
"path to a file with a GitHub API token",
)
AddCommands(cmd)
return cmd
}