Skip to content

Painless script development tool #21732

@robin13

Description

@robin13

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions