MCPcopy Create free account
hub / github.com/koding/kite / main

Function main

kitectl/main.go:13–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11)
12
13func main() {
14 c := cli.NewCLI(command.AppName, command.AppVersion)
15 c.Args = os.Args[1:]
16 c.Commands = map[string]cli.CommandFactory{
17 "showkey": command.NewShowkey(),
18 "register": command.NewRegister(),
19 "query": command.NewQuery(),
20 "run": command.NewRun(),
21 "tell": command.NewTell(),
22 "uninstall": command.NewUninstall(),
23 "list": command.NewList(),
24 "install": command.NewInstall(),
25 }
26
27 _, err := c.Run()
28 if err != nil {
29 fmt.Fprintf(os.Stderr, "Error executing CLI: %s\n", err.Error())
30 return
31 }
32}

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.65
RunMethod · 0.45

Tested by

no test coverage detected