Skip to content
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

Merged
merged 8 commits into from
Jun 26, 2017
Merged

improve cli flags #142

merged 8 commits into from
Jun 26, 2017

Conversation

ethanfrey
Copy link
Contributor

@ethanfrey ethanfrey commented Jun 26, 2017

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

@ethanfrey ethanfrey force-pushed the feature/130-support-tendermint-flags branch from 0e67f60 to e37c0cf Compare June 26, 2017 16:23
@@ -1,5 +1,28 @@
# Changelog

## 0.6.1 (TBD)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delightful!

@@ -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 {
Copy link
Member

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

Copy link
Contributor Author

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)
Copy link
Member

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 ?

Copy link
Contributor Author

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question, and below

@ethanfrey ethanfrey merged commit 8c7bf25 into develop Jun 26, 2017
@ethanfrey ethanfrey deleted the feature/130-support-tendermint-flags branch June 26, 2017 19:41
liamsi pushed a commit to liamsi/cosmos-sdk that referenced this pull request Jun 26, 2018
ParthDesai pushed a commit to ChorusOne/cosmos-sdk that referenced this pull request Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants