ObjectWithLabelArgs returns the first arg and a LabelArgs object
(cliContext *cli.Context)
| 233 | |
| 234 | // ObjectWithLabelArgs returns the first arg and a LabelArgs object |
| 235 | func ObjectWithLabelArgs(cliContext *cli.Context) (string, map[string]string) { |
| 236 | var ( |
| 237 | first = cliContext.Args().First() |
| 238 | labelStrings = cliContext.Args().Tail() |
| 239 | ) |
| 240 | |
| 241 | return first, LabelArgs(labelStrings) |
| 242 | } |
| 243 | |
| 244 | // LabelArgs returns a map of label key,value pairs |
| 245 | func LabelArgs(labelStrings []string) map[string]string { |
no test coverage detected
searching dependent graphs…