(cmd *cobra.Command, flag string)
| 520 | } |
| 521 | |
| 522 | func getFlagInt(cmd *cobra.Command, flag string) int { |
| 523 | i, err := cmd.Flags().GetInt(flag) |
| 524 | if err != nil { |
| 525 | glog.Fatalf("error accessing flag %s for command %s: %v", |
| 526 | flag, cmd.Name(), err) |
| 527 | } |
| 528 | return i |
| 529 | } |
| 530 | |
| 531 | func getFlagAccessLevel(cmd *cobra.Command, flag string) gitlab.AccessLevelValue { |
| 532 | i, err := cmd.Flags().GetInt(flag) |
no outgoing calls
no test coverage detected