MCPcopy Create free account
hub / github.com/temporalio/temporal / cliHandler

Function cliHandler

tools/sql/main.go:23–29  ·  view source on GitHub ↗

root handler for all cli commands

(c *cli.Context, handler func(c *cli.Context, logger log.Logger) error, logger log.Logger)

Source from the content-addressed store, hash-verified

21
22// root handler for all cli commands
23func cliHandler(c *cli.Context, handler func(c *cli.Context, logger log.Logger) error, logger log.Logger) {
24 quiet := c.GlobalBool(schema.CLIOptQuiet)
25 err := handler(c, logger)
26 if err != nil && !quiet {
27 os.Exit(1)
28 }
29}
30
31// BuildCLIOptions builds the options for cli
32func BuildCLIOptions() *cli.App {

Callers 1

BuildCLIOptionsFunction · 0.70

Calls 1

handlerStruct · 0.50

Tested by

no test coverage detected