[Utility] Local Proof of Stake CLI - CLI and RPC client [part 1/2] - Issue #112#177
Conversation
Signed-off-by: Alessandro De Blasis <[email protected]>
Signed-off-by: Alessandro De Blasis <[email protected]>
There was a problem hiding this comment.
Overall looks really good. Love Cobra - seems you took a lot from V0
I want a simple README in the CLI package laying out the CLI structure
We will also need user usage and specification documents - but that can be done in a separate issue (please open followup)
…_proof_of_stake_cli_CLI Signed-off-by: Alessandro De Blasis <[email protected]>
|
@deblasis Please re-request the review when this is ready |
I think I need an answer from @andrewnguyen22 here: #177 (comment) but apart from that it's ready I believe. |
|
Olshansk
left a comment
There was a problem hiding this comment.
Approving with a few minor comments, but otherwise approving because it's past the point of "good enough" and we'll iterate on main.
@deblasis I know we talked bout a Makefile or utility with examples of how to curl and such. Is that in a followup PR?
| func accountCommands() []*cobra.Command { | ||
| cmds := []*cobra.Command{ | ||
| { | ||
| Use: "Send <fromAddr> <to> <amount>", |
| if err != nil { | ||
| return err | ||
| } | ||
| // NOTE: since we don't have a keybase yet (tracked in #150), we are currently inferring the `fromAddr` from the PrivateKey supplied via the flag `--path_to_private_key_file` |
| @@ -0,0 +1,315 @@ | |||
| package cli | |||
There was a problem hiding this comment.
Resolving this per the TODOs left alongside cobra.ExactArgs
scroll down a bit, under "demo". Obviously that's just markdown that we can package the way we want. Just let me know how and I'll do it. |
Co-authored-by: Daniel Olshansky <[email protected]>
Signed-off-by: Alessandro De Blasis <[email protected]>
Signed-off-by: Alessandro De Blasis <[email protected]>
Description
This PR updates the CLI so that it provides access to the Utility module commands via RPC calls
Issue
Part of Issue #112 but we decided to split the work in 2 separate PRs
Type of change
Please mark the options that are relevant.
List of changes
Testing
make test_allREADMEChecklist