Open boz opened 3 years ago
Weirdly, -o text
writes YAML. Reviewing the cosmos SDK code this appears to be intentional
$ ../../akash --home=$PWD/cache query account akash1dc2wnk9alyxumdhsun8l0w8jlma253dhkfsk78 -o text
'@type': /cosmos.auth.v1beta1.BaseAccount
account_number: "0"
address: akash1dc2wnk9alyxumdhsun8l0w8jlma253dhkfsk78
pub_key: null
sequence: "0"
The documentation seems to indicate this
-o, --output string Output format (text|json) (default "text"
I can propose this as a bug to the Cosmos SDK team, but I'm not sure if they consider it one.
another issue -o
does not work for some commands
I think this might have been fixed. Verify?
still an issue on v0.12.2-rc0
-o text
outputs yaml
. will have to contact cosmos team
-o yaml
: prints json-o json
: prints json-o
flag: prints yaml