Skip to content
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

CLI Refactor #6571

Closed
22 of 27 tasks
alexanderbez opened this issue Jul 1, 2020 · 3 comments
Closed
22 of 27 tasks

CLI Refactor #6571

alexanderbez opened this issue Jul 1, 2020 · 3 comments

Comments

@alexanderbez
Copy link
Contributor

alexanderbez commented Jul 1, 2020

Summary

The current state of the CLI in the SDK is a bit of a mess, with the use of Viper global/singleton, ad-hoc flag instantiation and binding, and magically instantiation of client.Context. It makes testing difficult and runtime errors hard to debug.

Proposal

Once #6423 is finalized and merged, we'll have the ability to remove a lot of the existing cruft from the CLI framework. Namely, we should:

Stretch Goal:

  • Support --config flag where if provided, any field found will set/override any flag/arg.

/cc @aaronc @anilcse @sahith-narahari @alessio


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@alexanderbez alexanderbez added this to To do in v0.40 Release [Stargate] via automation Jul 1, 2020
@alexanderbez alexanderbez moved this from To do to In progress in v0.40 Release [Stargate] Jul 1, 2020
@alexanderbez alexanderbez added this to the v0.39 milestone Jul 1, 2020
@clevinson clevinson added this to Untriaged in Cosmos SDK Project Board via automation Jul 1, 2020
@alexanderbez alexanderbez self-assigned this Jul 1, 2020
@colin-axner
Copy link
Contributor

Since this is a quite a big change. Could we add creating a doc to the to do list for this. Maybe as an upgrade doc or explaining the scope of the changes for projects dependent upon this area of code.

@alexanderbez
Copy link
Contributor Author

@colin-axner sure, but the only major differences from a UX POV are:

  1. the removal of config.toml
  2. a single binary
  3. in process API

We'll have an upgrading doc that will cover all of this stuff.

@alexanderbez alexanderbez moved this from Untriaged to In progress in Cosmos SDK Project Board Jul 2, 2020
@aaronc aaronc mentioned this issue Jul 8, 2020
43 tasks
@clevinson clevinson moved this from In progress to Meta-Issues In Progress in Cosmos SDK Project Board Jul 9, 2020
This was referenced Jul 20, 2020
v0.40 Release [Stargate] automation moved this from In progress to Done Jul 21, 2020
Cosmos SDK Project Board automation moved this from Meta-Issues In Progress to Done Jul 21, 2020
@ethanfrey
Copy link
Contributor

Great job bez!

Looking forward to the new cli

alessio pushed a commit that referenced this issue Aug 17, 2020
Closes: #7007

Ref: #6571

Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Cosmos SDK Project Board
  
Archived (2020-08-10)
Development

No branches or pull requests

3 participants