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

bbin upgrade [script] #33

Open
rads opened this issue Sep 15, 2022 · 4 comments
Open

bbin upgrade [script] #33

rads opened this issue Sep 15, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@rads
Copy link
Collaborator

rads commented Sep 15, 2022

Docs

bbin upgrade [script]

Upgrade a script

# Install from Git tag
$ bbin install io.github.babashka/neil --git/tag v0.1.44
$ neil --version
neil 0.1.44

# Upgrade to latest Git tag
$ bbin upgrade neil
$ neil --version
neil 0.1.45

# Install from HTTP script
$ bbin install https://raw.githubusercontent.com/borkdude/tools/main/antq.clj

# Re-fetch HTTP script
$ bbin upgrade antq

Implementation Details

A non-exhaustive list of examples to consider for upgrading:

{:lib io.github.babashka/neil,
 :coords
 {:git/url "https://github.com/babashka/neil",
  :git/tag "v0.1.45",
  :git/sha "0474d4cb5cfb0207265a4508a0e82ae7a293ab61"}}
{:lib org.babashka/http-server, :coords {:mvn/version "0.1.11"}}
{:coords
  {:bbin/url
   "https://raw.githubusercontent.com/borkdude/tools/main/antq.clj"}}
@rads rads changed the title bbin upgrade bbin upgrade [script] Sep 15, 2022
@teodorlu
Copy link
Contributor

teodorlu commented Jan 7, 2023

Will it be possible to upgrade all bbin scripts with one command?

@rads
Copy link
Collaborator Author

rads commented Jan 7, 2023

@teodorlu: Yeah, I was thinking that would be the behavior for bbin upgrade with no arguments, like brew upgrade.

@borkdude
Copy link
Contributor

borkdude commented Jan 7, 2023

Maybe an explicit argument would be safer?

@teodorlu
Copy link
Contributor

teodorlu commented Jan 8, 2023

I would expect bbin upgrade to behave like sudo apt upgrade og pacman -Syuu, where everything is upgraded. Both of those commands take confirmation / ask for sudo.

Are you aware of brew's behavior?

@rads rads added the enhancement New feature or request label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants