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

why was --clipboard removed? #83

Closed
swyxio opened this issue Jan 29, 2019 · 4 comments
Closed

why was --clipboard removed? #83

swyxio opened this issue Jan 29, 2019 · 4 comments

Comments

@swyxio
Copy link

swyxio commented Jan 29, 2019

i see #57 but there wasnt really a discussion of why the clipboard option was removed. because i'm trying to make instructions for issue filers i cant assume people have clipboard-cli installed. just wondering why it seems to have been dropped because windows users have problems...

@tabrindle
Copy link
Owner

The problem in essence was compatibility across operating systems, and dealing with clipboards wasn't the main function of this library (though was becoming the biggest point of maintenance). The biggest factor is that dependencies are bundled and minified to make npx running faster, and clipboard libraries all seem to use OS specific binaries, which webpack can't handle in a JS script to my knowledge.

In the end, I made a choice to remove that option. Asking someone to highlight, copy and paste something is a lot less work than getting all the info envinfo gets manually.

You could still always include directions to use npx envinfo | pbcopy.

Or, if you are hoping for a universal solution, just use npx on both commands.

npx envinfo --system --binaries --markdown | npx clipboard-cli

@tabrindle
Copy link
Owner

Two follow ups to this issue:

  1. I will make sure there's an option to pipe the default format without escaping to the next binary, whether it be pbcopy, npx or something else.
  2. I will add this to the documentation. (Shame on me)

Sorry for any confusion or inconvenience

@swyxio
Copy link
Author

swyxio commented Jan 29, 2019

oooh i didnt know you could pipe npx’es like that (i was specifically even searching for that lol). sucks to be a bash noob.

thanks trevor

@swyxio swyxio closed this as completed Jan 29, 2019
@tabrindle
Copy link
Owner

I've said it before, I'll say it again. npx is amazing.

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

No branches or pull requests

2 participants