TODO copypasta from gh api
(f string)
| 146 | |
| 147 | // TODO copypasta from gh api |
| 148 | func parseField(f string) (string, string, error) { |
| 149 | idx := strings.IndexRune(f, '=') |
| 150 | if idx == -1 { |
| 151 | return f, "", fmt.Errorf("field %q requires a value separated by an '=' sign", f) |
| 152 | } |
| 153 | return f[0:idx], f[idx+1:], nil |
| 154 | } |
| 155 | |
| 156 | // TODO MODIFIED copypasta from gh api |
| 157 | func magicFieldValue(v string, opts RunOptions) (string, error) { |
no test coverage detected