-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
R4R: Fix gaiacli config and make it non-interactive only #2972
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2972 +/- ##
===========================================
+ Coverage 55.5% 55.53% +0.02%
===========================================
Files 120 120
Lines 8494 8494
===========================================
+ Hits 4715 4717 +2
+ Misses 3457 3455 -2
Partials 322 322 |
e4db8b3
to
970d56a
Compare
970d56a
to
2945018
Compare
This looks amazing, this has been annoying me lately. Maybe we rename this to |
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.
This is working locally for me. Huge improvement over whats there currently! Thanks @alessio!
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.
Right direction but I think this CLI is confusing.
How do I just print out the config? Tried:
$ gaiacli config
ERROR: wrong number of arguments
$ gaiacli config --list
ERROR: wrong number of arguments
IMO gaiacli config
should just print the config, and also we should set the default values (if applicable, e.g. for node
) when we initialize the config so the user can see what the defaults are.
configDefaults = map[string]string{ | ||
"chain_id": "", | ||
"output": "text", | ||
"node": "tcp://localhost:26657", |
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.
The CLI flag and this should just use a constant variable, no? Just to be safe.
What is |
EDIT: true, nothing happens as the file doesn't exist. Printing a warning seems sensible. |
d1881e4
to
82eab7b
Compare
Tested ACK; in the future I think we could make the possible config keys more obvious. |
* Fix gaiacli config and make it non-interactive only Closes: #2734 * Update cli tests * Remove --list, by default and with no args print config * Small improvements * Warn user when file doesn't exist * Fix integration tests
Closes: #2734
docs/
)PENDING.md
with issue #Files changed
in the github PR explorerFor Admin Use: