hex-validate

command module
v0.0.0-...-07cf894 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2018 License: MIT Imports: 5 Imported by: 0

README

Hex Plugin - Validate

Plugin to validate input from the user.

{
  "rule": "example input validation for arguments",
  "match": "build*",
  "help": "build <branch> <version>"
  "actions": [
    {
      "type": "hex-validate",
      "command": "${hex.input.1}",
      "config": {
        "type": "string",
        "match_re": "/.+/",
        "match_list": "develop,master,release",
        "success": "Looks good!",
        "failure": "Validation failed :("
      }
    }
  ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL