safe-cli icon indicating copy to clipboard operation
safe-cli copied to clipboard

Support scripting

Open Uxio0 opened this issue 4 years ago • 1 comments

Currently the only way to use the safe-cli is using the interactive mode. For example, to send some ether a user must run the app, load the owners and then call send_ether and press intro.

An automatic way to do it, like python safe_cli --node <node_url> --private-key <owner_private_key_1> --private-key <owner_private_key_2> send-ether --wei <ether_in_wei> --to <address>

Uxio0 avatar Dec 01 '20 09:12 Uxio0

Agreed. Especially, because the interactive mode requirement also makes it unusable in remote servers like Google Colab. I made a Jupyter notebook to make it easy for users to run the safe-cli from the browser since some users won't be able to install the command line themselves.

I get the following error:

WARNING: your terminal doesn't support cursor position requests (CPR).

Which I think is related to the lack of interactivity. So this causes the load safe command to hang and never complete.

I think this is a high priority fix as many issues that users face through UI can be solved through CLI and many users may not be able to use the CLI but they can use the notebook.

ademidun avatar Feb 03 '23 03:02 ademidun

Take a look at https://typer.tiangolo.com/

Uxio0 avatar Jun 10 '24 10:06 Uxio0

Tested and verified, many thanks!

JagoFigueroa avatar Jun 28 '24 11:06 JagoFigueroa