Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line - Add the eval option #665

Open
jordanmontt opened this issue Jan 26, 2024 · 3 comments
Open

Command line - Add the eval option #665

jordanmontt opened this issue Jan 26, 2024 · 3 comments

Comments

@jordanmontt
Copy link
Member

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

@guillep
Copy link
Member

guillep commented Jan 26, 2024

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"

@Bajger
Copy link
Member

Bajger commented Feb 6, 2024

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"

@jordanmontt
Copy link
Member Author

Hello,

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants