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

update subcommand for rye tools #1301

Open
lengau opened this issue Jul 31, 2024 · 1 comment
Open

update subcommand for rye tools #1301

lengau opened this issue Jul 31, 2024 · 1 comment

Comments

@lengau
Copy link

lengau commented Jul 31, 2024

Allow updating a tool using rye tools update rather than having to install -f it.

Current workflow:

$ rye tools install uv
error: package already installed
$ rye tools
Helper utility to manage global tools

Usage: rye tools <COMMAND>

Commands:
  install    Installs a package as global tool
  uninstall  Uninstalls a global tool
  list       List all registered tools
  help       Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help
$ rye tools install -f uv
Resolved 1 package in 184ms
Prepared 1 package in 205ms
Installed 1 package in 0.76ms
 + uv==0.2.32

Installed scripts:
  - uv
  - uvx

Expected workflow:

$ rye tools update uv
Resolved 1 package in 184ms
Prepared 1 package in 205ms
Installed 1 package in 0.76ms
 + uv==0.2.32

Installed scripts:
  - uv
  - uvx
@raoulg
Copy link

raoulg commented Sep 6, 2024

Yes, currently, if I want to update a global tool, my workaround is:

rye tools uninstall uv && rye tools install uv

Or something along those lines.

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