catks/webcommand

View on GitHub
examples/config.yml

Summary

Maintainability
Test Coverage

commands:
  hello_world:
    command: 'echo "Hello {{world}}"'
  new_file:
    command: 'echo "{{contents}}" > {{filename}}; echo "DONE"'
    params:
      filename: '^[a-z]+$' # Some Regexp
      contents: '^[a-zA-Z0-9]*$'
  hehe:
    command: 'echo "{{name}}, are you {{state}}?"'
    params:
      name: '^[a-zA-Z]+$'
      state: '^\S+$'