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

When copying to clipboard fails, persist anyway #9

Merged
merged 1 commit into from Sep 25, 2016
Merged

When copying to clipboard fails, persist anyway #9

merged 1 commit into from Sep 25, 2016

Conversation

maxjacobson
Copy link
Contributor

Via issue #8

The previous behavior is that when copying to the clipboard fails during
a rooster commands, the password would be printed but not persisted.
With this change, it will be printed and persisted.

Other possible approaches:

  • don't print the password, tell the user the operation failed
  • don't print the password, tell the user how they can see it if they
    want to (rooster get site --show)

I included rooster get in these changes for consistency. I wasn't
concerned about a change not being persisted, but I didn't think it
should exit 1 if all of the other instances of clipboard error handling
treat it as an acceptable circumstance.

The one thing I'm wondering is whether rooster should notify the user
that something went wrong during the copying so they can attempt to fix
it. What do you think, Conrad?

Via issue #8

The previous behavior is that when copying to the clipboard fails during
a rooster commands, the password would be printed but not persisted.
With this change, it will be printed and persisted.

Other possible approaches:

* don't print the password, tell the user the operation failed
* don't print the password, tell the user how they can see it if they
  want to (`rooster get site --show`)

I included `rooster get` in these changes for consistency. I wasn't
concerned about a change not being persisted, but I didn't *think* it
should exit 1 if all of the other instances of clipboard error handling
treat it as an acceptable circumstance.

The one thing I'm wondering is whether rooster should notify the user
that something went wrong during the copying so they can attempt to fix
it. What do you think, Conrad?
@conradkleinespel conradkleinespel merged commit 9b39ffd into conradkleinespel:master Sep 25, 2016
@conradkleinespel
Copy link
Owner

@maxjacobson You are awesome ! Thanks a lot for improving Rooster !

Would you like me to add you to the contributors list in the README.md ? 😃

@conradkleinespel
Copy link
Owner

conradkleinespel commented Sep 25, 2016

@maxjacobson Regarding your question about notifying the user when the clipboard copy fails, I don't know. I wouldn't mind notifying the user. But usually, this never fails. And rust-clipboard does notify the user on unsupported platforms.

What do you think ?

@conradkleinespel
Copy link
Owner

@maxjacobson A new release is published and available via crates.io and cargo install. Thanks again for your help. https://github.com/conradkleinespel/rooster/releases/tag/v2.3.0

@maxjacobson maxjacobson deleted the tolerate-clipboard-failures branch September 25, 2016 18:41
@maxjacobson
Copy link
Contributor Author

Awesome, thanks! I'll chime in with some more thoughts on the new issue you created.

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