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

optional verbose flag #181

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open

optional verbose flag #181

wants to merge 8 commits into from

Conversation

hamdiallam
Copy link
Member

@hamdiallam hamdiallam commented Dec 25, 2019

Addresses #162

Add optional persistent verbose flag that can be reused across commands. Not used atm.

Added some godoc

Copy link
Member

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Add functionality of verbose flag and fill in godoc for cli commands

cmd/plasmacli/subcmd/query/info.go Show resolved Hide resolved
@codecov-io
Copy link

Codecov Report

Merging #181 into develop will increase coverage by 0.14%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #181      +/-   ##
===========================================
+ Coverage    52.02%   52.16%   +0.14%     
===========================================
  Files           28       28              
  Lines         1359     1363       +4     
===========================================
+ Hits           707      711       +4     
  Misses         538      538              
  Partials       114      114
Impacted Files Coverage Δ
utils/utils.go 100% <ø> (ø) ⬆️
plasma/position.go 62.76% <100%> (+1.65%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dfea376...b28bee7. Read the comment docs.

Copy link
Contributor

@wesgraham wesgraham left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks

Copy link
Member

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

utACK

// transaction hash
txHash, err := hex.DecodeString(utils.RemoveHexPrefix(arg))
if err != nil {
fmt.Printf("Error decoding tx hash hex-encoded string: %s\n", err)
Copy link
Member

Choose a reason for hiding this comment

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

What is the reasoning for printing the error as opposed to wrapping it? Also, error messages returned should begin with lowercase.

Copy link
Member Author

Choose a reason for hiding this comment

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

that's a good point. Should just return it

@@ -14,6 +14,7 @@ import (
"strings"
)

// IncludeCmd -
Copy link
Member

Choose a reason for hiding this comment

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

do you plan to update these godoc's or nah?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll update them. Found a bug in plasmad and paused on the cli work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants