{
  "id": "k9s",
  "name": "K9s",
  "homepage": "https://k9scli.io",
  "description": "K9s is a terminal based UI to interact with your Kubernetes clusters.",
  "icon": "https://k9scli.io/assets/k9s.png",
  "executables": [
    "k9s"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/k9s/",
      "~/Library/Application Support/k9s/",
      "%LOCALAPPDATA%/k9s/"
    ],
    "secret": [],
    "machine_lines": [
      {
        "file": [
          "~/.config/k9s/config.yaml",
          "~/Library/Application Support/k9s/config.yaml",
          "%LOCALAPPDATA%/k9s/config.yaml"
        ],
        "match": {
          "key_path": [
            "k9s.screenDumpDir"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Open K9s",
    "description": "Launch the K9s cluster UI with context, namespace and mode options. Auth and TLS options are left out.",
    "quality": "ai-draft",
    "base": "fig:k9s",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/k9s.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "context",
        "label": "Kube context",
        "type": "string",
        "option": [
          "--context"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "namespace",
        "label": "Namespace",
        "type": "string",
        "option": [
          "-n",
          "--namespace"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "all_namespaces",
        "label": "All namespaces",
        "type": "boolean",
        "option": [
          "-A",
          "--all-namespaces"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "command",
        "label": "Start resource",
        "description": "Resource view to load at launch, for example pods or deploy.",
        "type": "string",
        "option": [
          "-c",
          "--command"
        ],
        "suggestions": [
          {
            "value": "pods",
            "label": "Pods"
          },
          {
            "value": "deployments",
            "label": "Deployments"
          },
          {
            "value": "services",
            "label": "Services"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "kubeconfig",
        "label": "Kubeconfig file",
        "type": "path",
        "option": [
          "--kubeconfig"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "readonly",
        "label": "Read-only mode",
        "type": "boolean",
        "option": [
          "--readonly"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "write",
        "label": "Write mode",
        "type": "boolean",
        "option": [
          "--write"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "headless",
        "label": "Hide header",
        "type": "boolean",
        "option": [
          "--headless"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "refresh",
        "label": "Refresh rate (seconds)",
        "type": "integer",
        "option": [
          "-r",
          "--refresh"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "log_level",
        "label": "Log level",
        "type": "string",
        "option": [
          "-l",
          "--logLevel"
        ],
        "suggestions": [
          {
            "value": "info",
            "label": "info"
          },
          {
            "value": "warn",
            "label": "warn"
          },
          {
            "value": "debug",
            "label": "debug"
          },
          {
            "value": "trace",
            "label": "trace"
          },
          {
            "value": "error",
            "label": "error"
          }
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "open",
        "label": "Open in a namespace",
        "fields": [
          "context",
          "namespace",
          "command"
        ]
      },
      {
        "id": "safe",
        "label": "Open read-only",
        "set": {
          "readonly": [
            true
          ]
        },
        "fields": [
          "readonly",
          "context",
          "namespace",
          "all_namespaces"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "context",
          "namespace",
          "all_namespaces",
          "command",
          "readonly"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "kubeconfig",
          "write",
          "headless",
          "refresh",
          "log_level"
        ]
      }
    ]
  }
}
