-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustache>featurediscusshigh hanging fruit
Description
Describe the feature:
My wishlist for painless Painless development: a command line tool to load a painless script and contexts, something like:
run-painless --script my-script.painless --context /path/to/context-files
where --context could be a single file or directory containing multiple files.
A context file would be a json document which could (for example to simulate a watch) could have something like:
{
"ctx":{
"payload":{
"size":5
}
}
}
... or obviously much much more complex...
Once started, the tool would allow you to run again and again (reducing the JVM load time), each time reading the script and context files anew.
For bonus points the execution time for each of the contexts, and a summary for all of the contexts together would be very useful for optimising scripts.
andrask
Metadata
Metadata
Assignees
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustache>featurediscusshigh hanging fruit