Skip to content

Support Lua-scripts to generate random data for producing #2

@ArtyomKomarenko

Description

@ArtyomKomarenko

To generate some specific data would be great to support Lua-script.

For example, if my script is in funcs.lua:

function randomCardNumber() {
    return "4242424242424242"
}

It can be passed to input like:

$ protokaf produce CardRequest \
  --lua funcs.lua
  --data '{"card": {{randomCardNumber | quote}}}'
  ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions