MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / GenerateWshCommandDeclMap

Function GenerateWshCommandDeclMap

pkg/wshrpc/wshrpcmeta.go:111–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111func GenerateWshCommandDeclMap() map[string]*WshRpcMethodDecl {
112 rtype := wshRpcInterfaceRType
113 rtnMap := make(map[string]*WshRpcMethodDecl)
114 for midx := 0; midx < rtype.NumMethod(); midx++ {
115 method := rtype.Method(midx)
116 decl := generateWshCommandDecl(method)
117 rtnMap[decl.Command] = decl
118 }
119 return rtnMap
120}

Callers 4

wshadapter.goFile · 0.92
generateWshClientApiFileFunction · 0.92
GenerateWshClientFunction · 0.92

Calls 1

generateWshCommandDeclFunction · 0.85