INNER CODE UNIT · Go
init
itaysk/kubectl-neat · cmd/cmd.go:33
func init() {
outputFormat = rootCmd.PersistentFlags().StringP("output", "o", "yaml", "output format: yaml or json")
inputFile = rootCmd.Flags().StringP("file", "f", "-", "file path to neat, or - to read from stdin")
rootCmd.SetOut(os.Stdout)
rootCmd.SetErr(os.Stderr)
rootCmd.MarkFlagFilename("file")
rootCmd.AddCommand(getCmd)
rootCmd.AddCommand(versionCmd)
}
// Execute is the entry point for the command package
func Execute() {
if err := rootCmd.Execute(); err != nil {
os.Exit(1)
}
}
var rootCmd = &cobra.Command{