MCPcopy Create free account
hub / github.com/AdRoll/baker / main

Function main

examples/help/main.go:23–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21var flagHelpConfig = flag.String("help", "", "show help for a `component` (use '*' to dump all)")
22
23func 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
43var components = baker.Components{
44 Inputs: input.All,

Callers

nothing calls this directly

Calls 2

RenderHelpMarkdownFunction · 0.92
ParseMethod · 0.65

Tested by

no test coverage detected