Documentation
¶
Overview ¶
@sk-task jsonc-config-format#T4.2: jsonc-config example
This example demonstrates JSONC config parsing in DraftCrew:
- ParseJSONC — parse inline JSONC (with // comments and trailing commas)
- AutoDetect — detect crew.jsonc vs crew.yaml in a directory
- SubstitutePlaceholders — replace {variable} patterns from an inputs block
Usage:
go run ./examples/features/jsonc-config
Or with an existing crew.jsonc:
export OPENAI_API_KEY=sk-... draftcrew run ./examples/features/jsonc-config/crew.jsonc
Click to show internal directories.
Click to hide internal directories.