{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/commands-json/latest.json",
  "description": "Schema for bundleconfig.json files",
  "x-lintel": {
    "source": "https://www.schemastore.org/commands.json",
    "sourceSha256": "8934fa9ded8019fc0f31a234947879dec39bcd8c2342f8b30636d1fe1a252bce",
    "fileMatch": [
      "commands.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "properties": {
    "commands": {
      "description": "A list of commands.",
      "additionalProperties": {
        "$ref": "#/$defs/commands"
      }
    },
    "-vs-binding": {
      "type": "object",
      "description": "Specify any Visual Studio event bindings.",
      "properties": {
        "AfterBuild": {
          "$ref": "#/$defs/vsbindings"
        },
        "BeforeBuild": {
          "$ref": "#/$defs/vsbindings"
        },
        "Clean": {
          "$ref": "#/$defs/vsbindings"
        },
        "ProjectOpen": {
          "$ref": "#/$defs/vsbindings"
        }
      }
    }
  },
  "id": "https://json.schemastore.org/commands.json",
  "$defs": {
    "commands": {
      "type": "object",
      "description": "The friendly name of the command.",
      "required": [
        "fileName"
      ],
      "properties": {
        "fileName": {
          "type": "string",
          "description": "The name of the executable file name. Example: \"cmd.exe\"."
        },
        "workingDirectory": {
          "type": "string",
          "description": "Specify a relative or absolute directory path."
        },
        "arguments": {
          "type": "string",
          "description": "The arguments to pass to the executable file."
        }
      }
    },
    "vsbindings": {
      "type": "array",
      "description": "A Visual Studio event that a command can be bound to.",
      "items": {
        "type": "string"
      }
    }
  }
}
