jbangdev / jbang

Unleash the power of Java - JBang Lets Students, Educators and Professional Developers create, edit and run self-contained source-only Java programs with unprecedented ease.
https://jbang.dev
MIT License
1.43k stars 159 forks source link

Make sure aliases can set all/most build/run flags #1486

Open quintesse opened 2 years ago

quintesse commented 2 years ago

Right now alias add can't set flags like --offline and --fresh. We should take al ook at which flags make sense to enable for aliases.

maxandersen commented 2 years ago

Yes, but would t the proper solution for out of date catalogs be that they refresh if stale?

quintesse commented 2 years ago

No, this is not for the catalog, it's just that if someone wants to create an alias to run jbang run/build --fresh or jbang run/build --offline it would be nice if that were possible. Right now it isn't.

maxandersen commented 2 years ago

I meant the right solution for the orignal discussion at https://github.com/jbangdev/jbang/issues/1485

quintesse commented 2 years ago

Perhaps I misunderstood that issue, but I thought it to mean that it didn't automatically update to the latest version of the app. I assumed there's nothing in the alias itself that changed. (Eg. the alias changes from running foo1@bar to foo2@bar).