yao/widgets/component/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

24 lines
842 B
YAML

group: yao.component
type: process
entries:
- name: getoptions
desc: Get select options by querying a model or query engine with configurable label/value mapping
args:
- name: params
type: object
required: true
desc: Query parameters map for filtering results
- name: props
type: object
required: true
desc: "Component props containing a query object with engine, from, labelField, valueField, wheres, and other query configuration"
return:
type: array
desc: "Array of option objects with label, value, and optional icon and color fields"
- name: selectoptions
desc: "[Deprecated] Use yao.component.getoptions instead. Always throws a 400 error"
args: []
return:
type: void
desc: Never returns; always throws a deprecation error