8000 A workflow's input is its configuration: derive(Config), Layers, Program by arminhammer · Pull Request #53 · arminhammer/jackdaw · GitHub
[go: up one dir, main page]

Skip to content

A workflow's input is its configuration: derive(Config), Layers, Program - #53

Merged
arminhammer merged 2 commits into
mainfrom
config-input
Nov 7, 2026
Merged

arminhammer merged 2 commits into
mainfrom
config-input

Conversation

@arminhammer
Copy link
Copy Markdown
Owner

Summary

  • #[derive(Config)] (feature config) gives a workflow's input type one flag per field, with doc comments as help. Option<T>, Vec<T>, bool switches, #[config(skip|short|long)], #[serde(rename)] are understood.
  • jackdaw::config::Layers reads any serde type from defaults, files (toml/json/yaml), environment variables (__ for nesting) and flags, later sources winning. Errors name the setting or file.
  • jackdaw::runner::Program (feature cli) is main for a workflow: reads the input, runs it with a Runner, prints JSON. Flags: --config, --run-id, --quiet, --json, --plain, --restart. Program::run(args, vars) is the testable form.
  • README, crate docs, a new guide::config chapter and all examples use the config-struct pattern.
  • Version 0.2.4 (merging releases it).

Notes

  • Nested structs have no flags (files and environment only); --run-id is not --id to avoid clashing with common field names.
  • 24 BDD scenarios in operations/config.feature. Clippy, doctests and wasm clippy (config, yaml,config) pass locally.

🤖 Generated with Claude Code

arminhammer and others added 2 commits November 6, 2026 07:20
…, Program)

#[derive(Config)] gives a workflow's input type command line flags, config::Layers
reads it from defaults, files, the environment and flags, and runner::Program is
main for a workflow. The README, docs and examples use the pattern. Version 0.2.4.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@arminhammer
arminhammer merged commit 5a531a5 into main Nov 7, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

2C3C
0