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

Consider not copying to the clipboard by default or remove such functionality #212

Open
hacdias opened this issue Jun 5, 2021 · 0 comments

Comments

@hacdias
Copy link
Member

hacdias commented Jun 5, 2021

This CLI was built for beginners and we want to make it easy for everyone to easily deploy a website to IPFS. As thus, until version 8, there were two behaviors being enabled by default:

  1. Opening the gateway URLs in the end in the browser.
  2. Copying the links to the clipboard.

Even though they can be nice for someone trying the package for the first time, it can be an annoyance in the long run to always use a flag to not open the gateway URLs. Thus, I changed that to non-default on v9.0 and can be enabled with -o, --open.

Copying to the clipboard is usually useful if used in an interactive process. Not that useful if used in a CI, for example. Some even break #211.

Copying the hash or the link to the clipboard is relatively easy: we already print a clickable link to the terminal so most terminals will allow the user to just click on it. If that does not wok, most likely they can just select and copy.

Thus, my suggestion is to either no copy to the clipboard by default of to remove the functionality completely.

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

1 participant