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 'quiet' command #88

Merged
merged 2 commits into from Apr 2, 2013
Merged

Add 'quiet' command #88

merged 2 commits into from Apr 2, 2013

Conversation

Chris911
Copy link

@Chris911 Chris911 commented Apr 2, 2013

Description

The 'quiet' command lets you copy to the clipboard without echo. This can be useful if the item information is somewhat private. It will still echo an error if the item is not found.

Tests

I wasn't able to find a test for this feature. Since nothing is echoed I can't grep on anything like the other tests. Tried grep '^$' but that didn't work. Seems to work on my system however.

Disclaimer

This is my first ruby code and honestly just wanted to do a little something to get used to the syntax and project setup. The code I added is pretty much a duplicate of the 'echo' function with little changes. Opening this pull request so you can give me a little feedback and merge if you think it can be useful.

'quiet' command lets you copy to the clipboard without echo
@holman
Copy link
Owner

holman commented Apr 2, 2013

I think this looks pretty good, thanks!

One thing: when I think about how I'd use this, I'd think to myself "I want to copy this" and not "I want to quiet this". Can you change the quiet call to be copy?

@Chris911
Copy link
Author

Chris911 commented Apr 2, 2013

Agreed. Latest commit just changes the name to 'copy'. Thanks for your time.. Happy with first successful pull request!

@holman
Copy link
Owner

holman commented Apr 2, 2013

👍!

holman added a commit that referenced this pull request Apr 2, 2013
@holman holman merged commit ac0b82b into holman:master Apr 2, 2013
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.

None yet

2 participants