-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
improve cli flags #142
improve cli flags #142
Conversation
0e67f60
to
e37c0cf
Compare
@@ -1,5 +1,28 @@ | |||
# Changelog | |||
|
|||
## 0.6.1 (TBD) |
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.
Delightful!
cmd/basecli/commands/cmds.go
Outdated
@@ -47,6 +47,9 @@ func init() { | |||
|
|||
// runDemo is an example of how to make a tx | |||
func doSendTx(cmd *cobra.Command, args []string) error { | |||
if err := commands.RequireInit(cmd); err != nil { |
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.
Lets wrap these, as discussed
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.
Done and done. :)
@@ -23,7 +23,7 @@ test00GetAccount() { | |||
|
|||
checkAccount $SENDER "0" "9007199254740992" | |||
|
|||
ACCT2=$(${CLIENT_EXE} query account $RECV) | |||
ACCT2=$(${CLIENT_EXE} query account $RECV 2>/dev/null) |
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.
Why pipe to dev/null when we want the output ?
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.
It is supposed to fail. And I want no output on failure.
Rigel changed so all errors go to stderr. So unless I want lots of error messages in a successful test, I have to do this if the next line is assertFalse $?
@@ -23,7 +23,7 @@ test00GetAccount() { | |||
|
|||
checkAccount $SENDER "0" "9007199254740992" | |||
|
|||
ACCT2=$(${CLIENT_EXE} query account $RECV) | |||
ACCT2=$(${CLIENT_EXE} query account $RECV 2>/dev/null) |
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.
same question, and below
This fixes up a number of issues with the cli tools, to make it easier to used based on testnet feedback.
Fixes:
#130
#113
#135
#137