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

Method Run

kitectl/command/list.go:37–49  ·  view source on GitHub ↗
(_ []string)

Source from the content-addressed store, hash-verified

35}
36
37func (c *List) Run(_ []string) int {
38 kites, err := getInstalledKites("")
39 if err != nil {
40 c.Ui.Error(err.Error())
41 return 1
42 }
43
44 for _, k := range kites {
45 c.Ui.Output(k.String())
46 }
47
48 return 0
49}
50
51// getIntalledKites returns installed kites in .kd/kites folder.
52// an empty argument returns all kites.

Callers

nothing calls this directly

Calls 3

getInstalledKitesFunction · 0.85
ErrorMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected