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

Method Run

kitectl/command/showkey.go:61–75  ·  view source on GitHub ↗
(_ []string)

Source from the content-addressed store, hash-verified

59}
60
61func (c *Showkey) Run(_ []string) int {
62 token, err := kitekey.Parse()
63 if err != nil {
64 c.Ui.Error(err.Error())
65 return 1
66 }
67
68 claims := toObject(token.Claims)
69
70 for _, v := range tokenKeyOrder {
71 c.Ui.Output(fmt.Sprintf("%-15s%+v", v, claims[v]))
72 }
73
74 return 0
75}

Callers

nothing calls this directly

Calls 2

toObjectFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected