MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / getCommandType

Function getCommandType

pkg/ijson/ijson.go:536–546  ·  view source on GitHub ↗
(command Command)

Source from the content-addressed store, hash-verified

534}
535
536func getCommandType(command Command) string {
537 typeVal, ok := command["type"]
538 if !ok {
539 return ""
540 }
541 typeStr, ok := typeVal.(string)
542 if !ok {
543 return ""
544 }
545 return typeStr
546}
547
548func getCommandPath(command Command) []any {
549 pathVal, ok := command["path"]

Callers 2

ApplyCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected