Implement yao doc process list/inspect/validate and yao doc runtime list/inspect/validate commands. Validate uses engine addressing logic (process.Of) and checks dynamic-ID group registries (model, store, fs, task, schedule) to verify resources actually exist. - cmd/doc/: CLI command tree with process and runtime subcommands - cmd/root.go: wire docCmd into rootCmd - 27 process doc.yml + doc.go pairs across yao packages - cmd/doc/doc_test.go: integration tests Made-with: Cursor
32 lines
925 B
YAML
32 lines
925 B
YAML
group: yao.expression
|
|
type: process
|
|
entries:
|
|
- name: selectoption
|
|
desc: Convert input values into an array of label/value select options
|
|
args:
|
|
- name: input
|
|
type: any
|
|
required: true
|
|
desc: "Comma-separated string, or array of strings/numbers/maps"
|
|
- name: labelField
|
|
type: string
|
|
required: false
|
|
desc: "Field name to use as label when input items are maps (default: name)"
|
|
- name: valueField
|
|
type: string
|
|
required: false
|
|
desc: "Field name to use as value when input items are maps (default: id)"
|
|
return:
|
|
type: array
|
|
desc: Array of objects with label and value fields
|
|
|
|
- name: trimspace
|
|
desc: Trim leading and trailing whitespace from a string
|
|
args:
|
|
- name: input
|
|
type: string
|
|
required: true
|
|
desc: String to trim
|
|
return:
|
|
type: string
|
|
desc: Trimmed string
|