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 }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/pyenv.ts"
license = "MIT"
[[commands.subcommand]]
path = ["install"]
label = "Install a Python version"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/pyenv.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "version"
label = "Version"
description = "For example 3.12.4."
type = "string"
position = 0
sources = ["fig"]
[[commands.subcommand.field]]
id = "list"
label = "List available versions"
type = "boolean"
option = ["--list", "-l"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "force"
label = "Reinstall if present"
type = "boolean"
option = ["--force", "-f"]
effect = "overwrite"
sources = ["fig"]
[[commands.subcommand.field]]
id = "skip_existing"
label = "Skip if installed"
type = "boolean"
option = ["--skip-existing", "-s"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "keep"
label = "Keep source tree"
type = "boolean"
option = ["--keep", "-k"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "verbose"
label = "Verbose build"
type = "boolean"
option = ["--verbose", "-v"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "debug"
label = "Debug build"
type = "boolean"
option = ["--debug", "-g"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "install"
label = "Install"
fields = ["version", "skip_existing", "verbose"]
required = ["version"]
[[commands.subcommand.task]]
id = "list"
label = "List versions"
fields = ["list"]
required = ["list"]
set = { list = [true] }
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["version", "list", "skip_existing", "force", "verbose"]
[[commands.subcommand.group]]
id = "advanced"
label = "Advanced"
fields = ["keep", "debug"]
[[commands.subcommand]]
path = ["global"]
label = "Set the global version"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/pyenv.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "version"
label = "Version"
type = "string"
position = 0
sources = ["fig"]
[[commands.subcommand.task]]
id = "set"
label = "Set global"
fields = ["version"]
required = ["version"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["version"]
[[commands.subcommand]]
path = ["local"]
label = "Set the local version"
description = "Writes .python-version in the current directory."
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/pyenv.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "versions"
label = "Version(s)"
type = "string"
position = 0
multiple = true
sources = ["fig"]
[[commands.subcommand.field]]
id = "unset"
label = "Unset"
type = "boolean"
option = ["--unset"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "set"
label = "Set local"
fields = ["versions"]
required = ["versions"]
[[commands.subcommand.task]]
id = "unset"
label = "Unset local"
fields = ["unset"]
required = ["unset"]
set = { unset = [true] }
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["versions", "unset"]