Skip to content

Option to pass stdin to the executing command #190

@adnanh

Description

@adnanh

Since command arguments and environment variable content have limits on the size, we could implement option to pass request values via stdin.

Definition could look something like:

"pass-stdin-to-command": [
  { "source": "payload", "name": "something" },
  { "source": "string", "name": "blah blah" }
]

Questions

What format should we use to encode these values so scripts can easily figure out which content resembles which value

  1. We could use newline as value separator, but then we'd have to escape all newlines in the actual value.

  2. Other option would be something like HTTP is doing when sending multipart messages by using boundaries.

  3. Third option would be to encode data using JSON? Tools like jq make this an easy task to handle in shell scripts.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions