-
Notifications
You must be signed in to change notification settings - Fork 31
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
default output method was changed to 'text' from 'json' #473
Comments
If you don't mind, can you describe your expectation more specifically? e.g.) The example above is the result produced on my local machine. |
0.3.0-rc0 was the lbm version. Sorry to confuse you. On queries: json attached an example. Below is the default output.
and below is the json output(using
|
Confirmed it is reproducible. And the recent cosmos-sdk shows the same behavior. |
BTW, it seems they prefer yaml format. |
I concluded it is not a bug, let me explain. Sorry for the confusion. |
If you agree with my opinion, feel free to close the issue, or we may continue discussion on the subject. |
I agree that the 'text' format is more appropriate by default. |
I think it's OK to print it as is, because the default of the "binary" is always json. Please refer to:
I confirmed that after I removed the corresponding entry in the config file, the client prints the output in json format as expected. |
Oh, I understood the meaning above. However, I think users may be a little confused. |
I strongly agree on it. If users have no idea about the config file, they may think this is a bug as we did. |
How about changing the default value in the config? If you think it's OK to go, I will submit a PR of it. |
I agree with your suggestion.
|
Summary of Bug
As shown below, in the past, the default output method was json.
-o, --output string Output format (text|json) (default "json")
The cli still tells me that the default is json.
However, the result output is text by default now.
The defaults below appear to have been changed.
https://github.com/line/lbm-sdk/blob/393d1fcd3f3aaf2c632eff74d21d380d70e60a96/client/config/config.go#L15
Version
lbm v0.3.0-rc0
lbm-sdk v0.45.0-rc0
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: