Skip to content

[p3] "Keys" module fail to support "json-indent" output #1411

@shilei-wang

Description

@shilei-wang

To Reproduce
Steps to reproduce the behavior:
iriscli keys list -o=json --indent
ERROR: unknown flag: --indent

The output of json format is unreadable.
for example:
root@ubuntu16:~# iriscli keys list -o=json
[{"name":"node0","type":"local","address":"faa1ugvhffeqfsps8huydgn9ajtgxh8kgszuduukrv","pub_key":"fap1addwnpepqdzhruaddjnd030kzunl5qkch337h8nxyy6a2rgkkh2vevksyqle5vt9xnn"},{"name":"v0","type":"local","address":"faa1ugvhffeqfsps8huydgn9ajtgxh8kgszuduukrv","pub_key":"fap1addwnpepqdzhruaddjnd030kzunl5qkch337h8nxyy6a2rgkkh2vevksyqle5vt9xnn"}]

Currect version:
v0.14.0

Metadata

Metadata

Labels

bugSomething isn't workingclient

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions