pharo-launcher icon indicating copy to clipboard operation
pharo-launcher copied to clipboard

Command line - Add the `eval` option

Open jordanmontt opened this issue 2 years ago • 3 comments

It would be nice to be able to launch an image in headless mode. For example $ pharo-launcher image mySuperImage eval "2+2" and that returns a 4

jordanmontt avatar Jan 26 '24 13:01 jordanmontt

Yes!

I wonder, what if instead of that we do

$ pharo-launcher image mySuperImage --headless -- args args args

and all args are sent to the image?

Also should this be headless or headful by default?

Then in that case this could be

$ pharo-launcher image mySuperImage --headless -- eval "1+1"

guillep avatar Jan 26 '24 13:01 guillep

Hi! @jordanmontt did you mean to be part of launch command (or even create command)? Since image command is just root for subcommands... E.g.: $ pharo-launcher image launch <myImage> --headless --eval --save "MyClass oneTimeSetup"

Bajger avatar Feb 06 '24 08:02 Bajger

Hello,

Yes, I was meaning what Guille said. To be able to do something like that

$ pharo-launcher image mySuperImage --headless -- args args args

jordanmontt avatar Feb 06 '24 08:02 jordanmontt