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

Add ipfs add --quieter #3770

Merged
merged 2 commits into from
Mar 10, 2017
Merged

Add ipfs add --quieter #3770

merged 2 commits into from
Mar 10, 2017

Conversation

Kubuxu
Copy link
Member

@Kubuxu Kubuxu commented Mar 9, 2017

It will print out only the final hash
Resolves #3371

@Kubuxu Kubuxu added the status/in-progress In progress label Mar 9, 2017
@Kubuxu Kubuxu added this to the Ipfs 0.4.7 milestone Mar 9, 2017
if err != nil {
res.SetError(u.ErrCast(), cmds.ErrNormal)
return
}

if quieter {
Copy link
Member

Choose a reason for hiding this comment

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

I think this logic can be DRYed up and moved into the loop below

It disables all outputs apart from the last hash.
Useful for adding directories as you won't have to do `| tail -1`

License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>

DRY up

License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
Copy link
Member

@whyrusleeping whyrusleeping left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @Kubuxu

@whyrusleeping whyrusleeping merged commit 05d35d1 into master Mar 10, 2017
@whyrusleeping whyrusleeping deleted the feat/add/superquiet branch March 10, 2017 22:41
@whyrusleeping whyrusleeping removed the status/in-progress In progress label Mar 10, 2017
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