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

Function getCommandPath

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

Source from the content-addressed store, hash-verified

546}
547
548func getCommandPath(command Command) []any {
549 pathVal, ok := command["path"]
550 if !ok {
551 return nil
552 }
553 path, ok := pathVal.([]any)
554 if !ok {
555 return nil
556 }
557 return path
558}
559
560func ValidatePath(path any) error {
561 if path == nil {

Callers 2

ApplyCommandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected