MCPcopy Create free account
hub / github.com/UiPath/uipathcli / ParseOutput

Function ParseOutput

test/setup.go:280–287  ·  view source on GitHub ↗
(t *testing.T, output string)

Source from the content-addressed store, hash-verified

278}
279
280func ParseOutput(t *testing.T, output string) map[string]interface{} {
281 stdout := map[string]interface{}{}
282 err := json.Unmarshal([]byte(output), &stdout)
283 if err != nil {
284 t.Errorf("Failed to deserialize command output: %v", err)
285 }
286 return stdout
287}
288
289func GetArgumentValue(args []string, name string) string {
290 index := slices.Index(args, name)

Calls

no outgoing calls