-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to generate separate JSON schema files #1478
Conversation
10bad92
to
c2aceab
Compare
println!(" --help"); | ||
println!(" Print this helpfile."); | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Souldn't this code live somewhere in the CLI code (close to some main
function)? write_api_impl
should take the switch as an argument.
I guess the issue is that the contract developer owns the binaries. Maybe we should change that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be super cool if cargo schema
was a binary you install with cargo install
, but I get the feeling that wouldn't be so easy to do
c2aceab
to
c3e1169
Compare
c3e1169
to
afc2a7e
Compare
Rebased and applied suggestion from #1476 (comment) |
Closes #1476
I didn't add
clap
as a dep here since it felt like overkill, but it can be integrated in the future if these binaries become more complicated.