-
Notifications
You must be signed in to change notification settings - Fork 157
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
feat: Java API for running JBang #1814
Comments
Also it will be nice to have an option to pass to another JBang command an object from main JBang/Java app. For example, the main application can prepare an object for further processing and logger and pass these 2 objects to the spawned JBang command. Ideally, it would be great to have full communication between the two processes, including callback capability. |
If #1811 is merged we could implement a JBang launcher API by referring to |
There can't be two way communication - jbang exits after printing the command to execute. Having an API to find and get access to jbang and it's features makes sense. |
I would like to be able to use JBang to run another JBang command (so I can do some processing of user input and delegate the result). It's quite hard right now as you have to try and scrape the generated command line from stderr, unless I'm missing something. E.g. this works for me:
but it's kind of scary, and you can't avoid the command also being printed to stdout.
The text was updated successfully, but these errors were encountered: