-
Notifications
You must be signed in to change notification settings - Fork 33
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
[Utility] Local Proof of Stake CLI - CLI and RPC client [part 1/2] - Issue #112 #177
[Utility] Local Proof of Stake CLI - CLI and RPC client [part 1/2] - Issue #112 #177
Conversation
Signed-off-by: Alessandro De Blasis <alex@deblasis.net>
Signed-off-by: Alessandro De Blasis <alex@deblasis.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <alex@deblasis.net>
@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. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm excited for this :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
soon 🚀
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` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great comments.
CC @Jasonyou1995 for context
@@ -0,0 +1,315 @@ | |||
package cli |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <olshansky.daniel@gmail.com>
Signed-off-by: Alessandro De Blasis <alex@deblasis.net>
Signed-off-by: Alessandro De Blasis <alex@deblasis.net>
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_all
README
Checklist