citrusframework / citrus

Framework for automated integration tests with focus on messaging integration
https://citrusframework.org
Apache License 2.0
445 stars 135 forks source link

Add JBang support #1049

Open christophd opened 8 months ago

christophd commented 8 months ago

JBang is a great tool for Java scripting. JBang allows users to run Java scripts in an easy and comfortable way.

Citrus JBang would allow the user to create/run tests very fast without much of a project setup. The user may use this for rapid prototyping and as a starting point for a new Citrus project with some export functionality.

Possible commands could look like this

$ jbang citrus init hello.yaml
$ jbang citrus run hello.yaml

$ jbang citrus ls
PID      NAME  STATUS      AGE
1234.  hello     RUNNING   15s

$ jbang citrus logs hello
...

$ jbang citrus export --maven

Popular JBang implementations are the one provided by Apache Camel: https://camel.apache.org/manual/camel-jbang.html

bbortt commented 4 months ago

@christophd has this module (tools/jbang) been published yet? I mean, can I try and use it?