Cosmos-sdk: Single CLI binary

Created on 12 Jun 2020  路  8Comments  路  Source: cosmos/cosmos-sdk

Summary

ref: #6408

A single binary with be lighter weight and more convenient than two binaries xxxxd and xxxxcli.

Problem Definition

simd and simcli, etc. have mostly the same code but different cmd's. Currently 42mb for simcli and 50mb for simd.

Proposal

Just have a single cmd that will be lighter weight and pack everything needed.


For Admin Use

  • [x] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned
good first issue help wanted pinned

Most helpful comment

@dauTT let's just have all the commands at the top level. So the user would type sim start, sim query, etc.

As for the naming of the binary, I think sim is fine although maybe we choose to adopt one of simd or simcli.

Thanks for looking into this!

All 8 comments

does this need any design work? If someone in the community were to pick it up prior to 0.39 release would it be included?

@marbar3778 not really, and yes please! It should be more or less trivial. Move command instantiation around and remove *cli remainings.

Hi, can I work on this?

Hi, can I work on this?

That would be a great help, 馃檹

@dauTT yes pls 馃檹 let us know if you need guidance on this, but I think it should be pretty straight forward.

Is it okay if I follow this convention?

1) single binary name: sim
2) sim client = simcli
3) sim daemon = simd

Selection_079
Selection_080

@dauTT let's just have all the commands at the top level. So the user would type sim start, sim query, etc.

As for the naming of the binary, I think sim is fine although maybe we choose to adopt one of simd or simcli.

Thanks for looking into this!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings