Jabba-Team / jabba

(cross-platform) Java Version Manager
Apache License 2.0
141 stars 11 forks source link

Add the possibility to execute some script after some commands #28

Closed CelesteGH closed 3 months ago

CelesteGH commented 1 year ago

If we could execute a script after a command we could ,for exemple, have it switch java globally or have stuff like Auto-env do stuff.

patrick-mccourt commented 1 year ago

Again I'm not sure what your ask here is either, why can't you run a script after a command?

CelesteGH commented 1 year ago

LOL sorry ^_^;

I'm using Jabba manually not in a script. And each time I switch to a new version I also have to run commands. Some people could even have commands they need executed before switching. Like some pre and post execution that could be set and played automatically...µ

Hope it makes more sense.

patrick-mccourt commented 1 year ago

Sure, can you give me an example of the kinds of commands you'd do?

It might be that a wrapper script that runs your commands and your version switch for you is the way to go but I'd like to understand your workflow.

CelesteGH commented 1 year ago

For example switching java globally by running at the end the code you provided for my environment.

patrick-mccourt commented 3 months ago

Closing this issue as the ask is unclear