qValet

"Buy Me A Coffee"

qValet listens for HTTP requests and executes commands on demand.

GitHub release (latest SemVer) GitHub all releases

View docs at https://cmaster11.github.io/qvalet/

Links:

Feature list

Example

listeners:

  /hello:

    # Returns the output of the command in the response
    return: output

    # Command to run, and list of arguments
    command: bash
    args:
      - -c
      # You can use templates to customize commands/arguments/env vars
      - |
        echo "Hello {{ .name }}"

Tested with:

curl "http://localhost:7055/hello?name=Mr.%20Anderson"

Will return:

{"output":"Hello Mr. Anderson\n"}