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 adding support for "deno add -g" #22769

Open
bartlomieju opened this issue Mar 7, 2024 · 1 comment
Open

Consider adding support for "deno add -g" #22769

bartlomieju opened this issue Mar 7, 2024 · 1 comment
Labels
2.0 triage required cli related to cli/ dir suggestion suggestions for new features (yet to be agreed)

Comments

@bartlomieju
Copy link
Member

$ deno add -g jsr
error: unexpected argument '-g' found

  tip: to pass '-g' as a value, use '-- -g'

Usage: deno add [OPTIONS] <packages>...

For more information, try '--help'.

-g would pull a package and make a global alias for it. Somewhat related to #22754.

Originally reported by @arafathusayn in jsr-io/jsr#213

@kt3k
Copy link
Member

kt3k commented Apr 18, 2024

Does this only work for CLI tool type packages? What happens if we call this with library type package?

@lucacasonato lucacasonato added cli related to cli/ dir suggestion suggestions for new features (yet to be agreed) 2.0 triage required labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0 triage required cli related to cli/ dir suggestion suggestions for new features (yet to be agreed)
Projects
None yet
Development

No branches or pull requests

3 participants