{
  "id": "zabbix-cli",
  "name": "Zabbix-cli",
  "homepage": "https://github.com/unioslo/zabbix-cli",
  "description": "A command line interface for performing common administrative tasks in Zabbix via the Zabbix API.",
  "icon": "theSVG:zabbix",
  "executables": [
    "zabbix-cli"
  ],
  "dotfiles": {
    "paths": [
      "[appData]/zabbix-cli/zabbix-cli.toml",
      "%LOCALAPPDATA%/unioslo/zabbix-cli/zabbix-cli.toml",
      "~/.zabbix-cli/zabbix-cli.conf"
    ],
    "exclude": [],
    "secret": [
      "[dataHome]/zabbix-cli/.zabbix-cli_auth",
      "[dataHome]/zabbix-cli/.zabbix-cli_auth_token",
      "[dataHome]/zabbix-cli/.zabbix-cli_session.json",
      "%LOCALAPPDATA%/unioslo/zabbix-cli/.zabbix-cli_auth",
      "%LOCALAPPDATA%/unioslo/zabbix-cli/.zabbix-cli_auth_token",
      "%LOCALAPPDATA%/unioslo/zabbix-cli/.zabbix-cli_session.json",
      "~/.zabbix-cli_auth",
      "~/.zabbix-cli_auth_token"
    ],
    "secret_paths": [
      {
        "file": [
          "[appData]/zabbix-cli/zabbix-cli.toml",
          "%LOCALAPPDATA%/unioslo/zabbix-cli/zabbix-cli.toml"
        ],
        "match": {
          "key_path": [
            "api.password",
            "api.auth_token"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": [
          "[appData]/zabbix-cli/zabbix-cli.toml",
          "%LOCALAPPDATA%/unioslo/zabbix-cli/zabbix-cli.toml"
        ],
        "match": {
          "key_path": [
            "app.session_file",
            "app.auth_token_file",
            "app.auth_file",
            "app.history_file",
            "logging.log_file"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Run zabbix-cli",
    "description": "Run one zabbix-cli command (for example show_hosts) or a batch file. Command-specific arguments are typed after the command.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "readme",
        "kind": "manual",
        "url": "https://github.com/unioslo/zabbix-cli/blob/master/README.md",
        "evidence": "2. **Single command**: Run a single command by running `zabbix-cli COMMAND`. This will run the command and print the output.\n3. **Batch mode**: Run multiple commands from a file by running `zabbix-cli -f FILE`. The file should contain one command per line.\nzabbix-cli show_hosts\nzabbix-cli --format json show_hosts\n"
      }
    ],
    "field": [
      {
        "id": "format",
        "label": "Output format",
        "type": "string",
        "option": [
          "--format"
        ],
        "suggestions": [
          {
            "value": "json",
            "label": "JSON"
          }
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "batch_file",
        "label": "Batch file",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "-f"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "command",
        "label": "Command",
        "type": "string",
        "position": 0,
        "suggestions": [
          {
            "value": "show_hosts",
            "label": "show_hosts"
          }
        ],
        "sources": [
          "readme"
        ]
      }
    ],
    "task": [
      {
        "id": "single",
        "label": "Run one command",
        "fields": [
          "command",
          "format"
        ],
        "required": [
          "command"
        ]
      },
      {
        "id": "batch",
        "label": "Run a batch file",
        "fields": [
          "batch_file"
        ],
        "required": [
          "batch_file"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "command",
          "format",
          "batch_file"
        ]
      }
    ]
  }
}
