yao/widgets/expression/doc.yml
Max efc84fbb97 feat(doc): add yao doc CLI commands and YAML documentation for all packages
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
2026-04-23 21:37:43 +08:00

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