()
| 54 | ) |
| 55 | |
| 56 | func getInit() { |
| 57 | _getCmd.Flags().SortFlags = false |
| 58 | _getCmd.Flags().StringVarP(&_flagGetEnv, "env", "e", "", "environment to use") |
| 59 | _getCmd.Flags().BoolVarP(&_flagGetWatch, "watch", "w", false, "re-run the command every 2 seconds") |
| 60 | _getCmd.Flags().VarP(&_flagOutput, "output", "o", fmt.Sprintf("output format: one of %s", strings.Join(flags.OutputTypeStringsExcluding(flags.YAMLOutputType), "|"))) |
| 61 | addVerboseFlag(_getCmd) |
| 62 | } |
| 63 | |
| 64 | var _getCmd = &cobra.Command{ |
| 65 | Use: "get [API_NAME] [JOB_ID]", |
no test coverage detected