{
  "id": "pyenv",
  "name": "pyenv",
  "homepage": "https://github.com/pyenv/pyenv",
  "description": "pyenv lets you easily switch between multiple versions of Python.",
  "icon": "https://github.com/pyenv.png",
  "executables": [
    "pyenv"
  ],
  "dotfiles": {
    "paths": [
      "~/.pyenv/version"
    ],
    "exclude": [
      "~/.pyenv/versions/",
      "~/.pyenv/shims/",
      "~/.pyenv/cache/",
      "~/.pyenv/plugins/"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "pyenv",
    "description": "Use the subcommand tabs to install a Python version or set the global or local one.",
    "quality": "ai-draft",
    "base": "fig:pyenv",
    "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/pyenv.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "install"
        ],
        "label": "Install a Python version",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/pyenv.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "version",
            "label": "Version",
            "description": "For example 3.12.4.",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "list",
            "label": "List available versions",
            "type": "boolean",
            "option": [
              "--list",
              "-l"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "force",
            "label": "Reinstall if present",
            "type": "boolean",
            "option": [
              "--force",
              "-f"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "skip_existing",
            "label": "Skip if installed",
            "type": "boolean",
            "option": [
              "--skip-existing",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "keep",
            "label": "Keep source tree",
            "type": "boolean",
            "option": [
              "--keep",
              "-k"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose build",
            "type": "boolean",
            "option": [
              "--verbose",
              "-v"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "debug",
            "label": "Debug build",
            "type": "boolean",
            "option": [
              "--debug",
              "-g"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "install",
            "label": "Install",
            "fields": [
              "version",
              "skip_existing",
              "verbose"
            ],
            "required": [
              "version"
            ]
          },
          {
            "id": "list",
            "label": "List versions",
            "fields": [
              "list"
            ],
            "required": [
              "list"
            ],
            "set": {
              "list": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "version",
              "list",
              "skip_existing",
              "force",
              "verbose"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "keep",
              "debug"
            ]
          }
        ]
      },
      {
        "path": [
          "global"
        ],
        "label": "Set the global version",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/pyenv.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "version",
            "label": "Version",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "set",
            "label": "Set global",
            "fields": [
              "version"
            ],
            "required": [
              "version"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "version"
            ]
          }
        ]
      },
      {
        "path": [
          "local"
        ],
        "label": "Set the local version",
        "description": "Writes .python-version in the current directory.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/pyenv.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "versions",
            "label": "Version(s)",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "unset",
            "label": "Unset",
            "type": "boolean",
            "option": [
              "--unset"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "set",
            "label": "Set local",
            "fields": [
              "versions"
            ],
            "required": [
              "versions"
            ]
          },
          {
            "id": "unset",
            "label": "Unset local",
            "fields": [
              "unset"
            ],
            "required": [
              "unset"
            ],
            "set": {
              "unset": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "versions",
              "unset"
            ]
          }
        ]
      }
    ]
  }
}
