{
  "$schema": "https://json-schema.org/schema",
  "description": "Runs a Go program using the `go run` command",
  "properties": {
    "args": {
      "alias": "arguments",
      "description": "Extra args when starting the app",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "cmd": {
      "default": "go",
      "description": "Name of the go binary to use, default is go",
      "type": "string"
    },
    "cwd": {
      "description": "Working directory from which to run the application",
      "type": "string",
      "x-completion-type": "directory"
    },
    "main": {
      "description": "Path to the file containing the main() function",
      "type": "string",
      "x-completion-glob": "main.go",
      "x-completion-type": "file",
      "x-priority": "important"
    }
  },
  "required": [
    "main"
  ],
  "title": "Serve executor",
  "type": "object",
  "version": 2
}