{
  "id": "gpg-tui",
  "name": "gpg-tui",
  "homepage": "https://github.com/orhun/gpg-tui",
  "description": "A terminal user interface for GnuPG.",
  "executables": [
    "gpg-tui"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/gpg-tui.toml",
      "[configHome]/gpg-tui/gpg-tui.toml",
      "[configHome]/gpg-tui/config",
      "[appData]/gpg-tui.toml",
      "[appData]/gpg-tui/gpg-tui.toml",
      "[appData]/gpg-tui/config",
      "%APPDATA%/gpg-tui.toml",
      "%APPDATA%/gpg-tui/gpg-tui.toml",
      "%APPDATA%/gpg-tui/config"
    ],
    "exclude": [],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Launch gpg-tui",
    "description": "Open the GnuPG terminal UI with a chosen home directory, output directory and look. Environment-variable equivalents and the key-selection mode are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "help",
        "kind": "help",
        "url": "https://github.com/orhun/gpg-tui/blob/master/README.md",
        "revision": "master 2026-10-27",
        "evidence": "Options:\n  -a, --armor                 Enables ASCII armored output\n      --splash                Shows the splash screen on startup\n      --homedir <dir>         Sets the GnuPG home directory [env: GNUPGHOME=]\n  -o, --outdir <dir>          Sets the output directory [env: OUTDIR=]\n  -d, --default-key <key>     Sets the default key to sign with [env: DEFAULT_KEY=]\n  -t, --tick-rate <ms>        Sets the tick rate of the terminal [env: TICK_RATE=] [default: 250]\n  -c, --color <color>         Sets the accent color of the terminal [env: COLOR=] [default: gray]\n  -s, --style <style>         Sets the style of the terminal [env: STYLE=] [default: colored] [possible values: plain, colored]\n      --log-file <path>       Sets the file to save the logs [env: LOG_FILE=]\n"
      }
    ],
    "field": [
      {
        "id": "homedir",
        "label": "GnuPG home directory",
        "type": "path",
        "option": [
          "--homedir"
        ],
        "path": {
          "kind": "directory",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "outdir",
        "label": "Output directory",
        "type": "path",
        "option": [
          "--outdir",
          "-o"
        ],
        "path": {
          "kind": "directory",
          "role": "output",
          "must_exist": false
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "default_key",
        "label": "Default signing key",
        "type": "string",
        "option": [
          "--default-key",
          "-d"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "armor",
        "label": "ASCII armored output",
        "type": "boolean",
        "option": [
          "--armor",
          "-a"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "color",
        "label": "Accent colour",
        "type": "string",
        "option": [
          "--color",
          "-c"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "style",
        "label": "Style",
        "description": "Terminal style, for example plain or colored.",
        "type": "string",
        "option": [
          "--style",
          "-s"
        ],
        "suggestions": [
          {
            "value": "colored",
            "label": "Colored"
          },
          {
            "value": "plain",
            "label": "Plain"
          }
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "tick_rate",
        "label": "Tick rate (ms)",
        "type": "integer",
        "option": [
          "--tick-rate",
          "-t"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "splash",
        "label": "Show splash screen",
        "type": "boolean",
        "option": [
          "--splash"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "log_file",
        "label": "Log file",
        "type": "path",
        "option": [
          "--log-file"
        ],
        "path": {
          "kind": "file",
          "role": "output",
          "must_exist": false
        },
        "effect": "overwrite",
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "custom-home",
        "label": "Use another keyring",
        "fields": [
          "homedir",
          "armor",
          "default_key"
        ],
        "required": [
          "homedir"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "homedir",
          "outdir",
          "default_key",
          "armor"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "color",
          "style",
          "tick_rate",
          "splash",
          "log_file"
        ]
      }
    ]
  }
}
