Skip to content
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

x/gov: Submit Proposal via File #1852

Closed
1 of 4 tasks
alexanderbez opened this issue Jul 27, 2018 · 2 comments
Closed
1 of 4 tasks

x/gov: Submit Proposal via File #1852

alexanderbez opened this issue Jul 27, 2018 · 2 comments

Comments

@alexanderbez
Copy link
Contributor

alexanderbez commented Jul 27, 2018

Summary

I believe it would improve the UX of the CLI for submitting proposals if users were allowed to submit them via an optional file instead of direct flags.

Problem Definition

It can be cumbersome to provide such information (especially the description) directly via the command line.

Proposal

e.g.

$ gaiacli gov submit-proposal --from=<keyName> ... --proposal|file|proposal-file

If such a flag is given, the file should be read and the other flags should be ignored (or nice error returned) if given, then parsed, and the remaining logic should be the same.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@cwgoes
Copy link
Contributor

cwgoes commented Jul 27, 2018

ACK, excellent idea.

Note: I think the @ prefix is often used for reading from files, and might save us an extra CLI flag, e.g. --proposal "I am a potato" vs --proposal @potato.txt.

@alexanderbez
Copy link
Contributor Author

Yeah curl does this huh? Good idea 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants