babashka / bbin

Install any Babashka script or project with one command
MIT License
136 stars 9 forks source link

Add `bbin --outdated` option #66

Open aadrian opened 1 year ago

aadrian commented 1 year ago

Please add bbin --outdated option to see which of the installed scripts are outdated.

(e.g. a similar behavior to npm outdated -g would be cool . The brew outdated way is also good, but the table/version based display of NPM is way more useful)

I think this would increase the reach and usability of the tool.

Thank you.

rads commented 1 year ago

It would be nice to use antq for deps.edn-based scripts. Currently antq doesn't run in Babashka but we could potentially work around this by running a Clojure subprocess with babashka.tasks/clojure.

We'll still need to write logic to check scripts that antq can't handle but this will reduce some of the effort overall. It would be ideal if antq could be used directly from Babashka in the future.

borkdude commented 1 year ago

neil also has similar features for updating stuff to the latest versions. running antq directy in bb would require mvn etc to work directly in bb.

rads commented 1 year ago

Got it. I haven't looked into how antq works internally, so thanks for the clarification. I'll take a look at the existing code in neil to see what we can reuse.