()
| 21 | var flagHelpConfig = flag.String("help", "", "show help for a `component` (use '*' to dump all)") |
| 22 | |
| 23 | func main() { |
| 24 | |
| 25 | flag.Usage = displayProgramUsage |
| 26 | flag.Parse() |
| 27 | |
| 28 | if *flagHelpConfig != "" { |
| 29 | baker.RenderHelpMarkdown(os.Stderr, *flagHelpConfig, components) |
| 30 | return |
| 31 | } |
| 32 | |
| 33 | // If the toml configuration file isn't provided as argument, print usage and exit |
| 34 | if len(flag.Args()) < 1 { |
| 35 | flag.Usage() |
| 36 | os.Exit(1) |
| 37 | } |
| 38 | |
| 39 | // Do stuff, then... |
| 40 | fmt.Println("Bye!") |
| 41 | } |
| 42 | |
| 43 | var components = baker.Components{ |
| 44 | Inputs: input.All, |
nothing calls this directly
no test coverage detected