bbin icon indicating copy to clipboard operation
bbin copied to clipboard

`bbin upgrade [script]`

Open rads opened this issue 3 years ago • 4 comments

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 avatar Sep 15 '22 20:09 rads

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

teodorlu avatar Jan 07 '23 08:01 teodorlu

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

rads avatar Jan 07 '23 19:01 rads

Maybe an explicit argument would be safer?

borkdude avatar Jan 07 '23 19:01 borkdude

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?

teodorlu avatar Jan 08 '23 12:01 teodorlu