Coordinator profile UX
I'm working on "Add page under coordinator guide for coordinator profile management" in https://github.com/ignite/cli/issues/2951 and I think we should consider improving UX of coordinator profile commands.
Current UX
Currently, the process of setting and displaying coordinator profile info looks like this:
Show coordinator address:
ignite account show default --address-prefix spn
Setting info:
ignite network coordinator set details "Coordinator details"
ignite network coordinator set website "example.org"
Showing info:
ignite n coordinator show spn1lp6hvdzsfquk0rmpfhshrwc79x5sfjkzf45nz7
This is confusing, because:
- You have to use
account showwith a flag coordinator showis not consistent with other commands, because it requires you to provide the address (notice that mostnetworkcommands use the account you have selected without requiring the--fromflag)- You have to set each property individually
Proposal
coordinator show command shows info for the currently selected account. If provided with an address, show info for that address, instead. Show accept an account name instead of address.
ignite n coordinator show # shows currently selected account
ignite n coordinator show alice
ignite n coordinator show spn1lp6hvdzsfquk0rmpfhshrwc79x5sfjkzf45nz7
set accepts keys as flags, so you can set multiple in one command.
ignite network coordinator set --details "Coordinator details" --website "example.org"
account show behaves exactly the same as coordinator show. If no arguments, show the current account. If an address or account name, show that instead. The Ignite chain prefix should be set as default, not the cosmos one.
ignite account show # shows currently selected account
ignite account show alice
ignite account show spn1lp6hvdzsfquk0rmpfhshrwc79x5sfjkzf45nz7
The same applies to ignite network validator.