Repository navigation
Machine-readable output schemas for Clap CLIs #6491
zerosnacks
started this conversation in
Show and tell
Replies: 1 comment 1 reply
|
Interesting project. Sounds similar in purpose to https://clispec.dev/ |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi! Thanks for making Clap!
Whilst experimenting with agents, I noticed that CLIs are still quite a black box: an agent can discover how to invoke a command, but generally has no idea what structured output it can reasonably expect on success.
That led me to build clap_schema 😄:
https://github.com/selemis-com/clap_schema
It turns Clap commands and their typed Rust results into machine-readable contracts, with the connection between the two checked at compile time.
Curious to hear what you think!
All reactions