ergpy icon indicating copy to clipboard operation
ergpy copied to clipboard

Command-line interface

Open rafidini opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe. In order to make it easy to interact with the package, a CLI might be needed.

Describe the solution you'd like Call CLI like the following examples :

  • ergpy send simple <addr1> <addr2>
  • ergpy send token <id> <addr1> <addr2>
  • ergpy get wallet-addresses --no-addresses 2
  • ergpy get box-info <index> <addr>

Warning @mgpai22 I will need your help defining the commands' behavior.

Additional context

  • argparse — Parser for command-line options, arguments and sub-commands

rafidini avatar Jun 06 '22 19:06 rafidini

Back on it

rafidini avatar Jan 20 '23 18:01 rafidini

Hey thanks for getting back on this!

I have skimmed through this it looks good so far. I have not worked on programming a CLI so I guess I will be learning along.

Once you get further along the documentation I will play around with it and make modifications as necessary.

Currently a suggestion I have is to store a persistent mnemonic during the first use of CLI. This could perhaps be encrypted.

mgpai22 avatar Jan 21 '23 01:01 mgpai22

Hey thanks for getting back on this!

I have skimmed through this it looks good so far. I have not worked on programming a CLI so I guess I will be learning along.

Once you get further along the documentation I will play around with it and make modifications as necessary.

Currently a suggestion I have is to store a persistent mnemonic during the first use of CLI. This could perhaps be encrypted.

I will look at how we can do that local store, good idea indeed !

In addition to that GitHub will soon release a Roadmap feature on Projects, so if you want you can create a Project to track the features that have to be implemented.

rafidini avatar Jan 21 '23 01:01 rafidini

Roadmap sounds interesting!

mgpai22 avatar Jan 21 '23 01:01 mgpai22