(args []string, c cli.Config)
| 22 | } |
| 23 | |
| 24 | func printDefaults(args []string, c cli.Config) (err error) { |
| 25 | arg, _, err := cli.PopFirstArgument(args) |
| 26 | if err != nil { |
| 27 | return |
| 28 | } |
| 29 | |
| 30 | if arg == "list" { |
| 31 | printAvailable() |
| 32 | } else { |
| 33 | if config, ok := defaults[arg]; !ok { |
| 34 | printAvailable() |
| 35 | } else { |
| 36 | fmt.Println(config) |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | return |
| 41 | } |
| 42 | |
| 43 | // Command assembles the definition of Command 'print-defaults' |
| 44 | var Command = &cli.Command{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…