id = "anyenv"
name = "anyenv"
homepage = "https://github.com/anyenv/anyenv"
description = "A tool for management of multiple language environments."
executables = ["anyenv"]
platforms = ["macos", "linux"]
[dotfiles]
paths = ["[configHome]/anyenv/anyenv-install/"]
secret = []
[commands]
format = 1
label = "anyenv"
description = "Manage the install manifests and install **env tools (rbenv, pyenv, nodenv...) through anyenv install. Other anyenv subcommands are left out."
quality = "ai-draft"
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.subcommand]]
path = ["install"]
label = "Install an **env"
description = "Install a language environment manager, or list/initialize/update the install manifests."
[[commands.subcommand.source]]
id = "script"
kind = "help"
url = "https://github.com/anyenv/anyenv/blob/master/libexec/anyenv-install"
evidence = """# Usage: anyenv install [-f|--force] [-s/--skip-existing] <**env>
[[commands.subcommand.field]]
id = "env_name"
label = "Environment"
type = "string"
position = 0
min = 0
suggestions = [{ value = "rbenv", label = "rbenv" }, { value = "pyenv", label = "pyenv" }, { value = "nodenv", label = "nodenv" }]
sources = ["script"]
[[commands.subcommand.field]]
id = "list"
label = "List available"
type = "boolean"
option = ["--list", "-l"]
sources = ["script"]
[[commands.subcommand.field]]
id = "force"
label = "Force reinstall"
type = "boolean"
option = ["--force", "-f"]
effect = "overwrite"
sources = ["script"]
[[commands.subcommand.field]]
id = "skip_existing"
label = "Skip if installed"
type = "boolean"
option = ["--skip-existing", "-s"]
sources = ["script"]
[[commands.subcommand.field]]
id = "update"
label = "Update manifests"
type = "boolean"
option = ["--update"]
sources = ["script"]
[[commands.subcommand.task]]
id = "install"
label = "Install an environment"
fields = ["env_name", "force", "skip_existing"]
required = ["env_name"]
[[commands.subcommand.task]]
id = "list"
label = "List available"
set = { list = [true] }
lock = ["list"]
fields = ["list"]
[[commands.subcommand.task]]
id = "update"
label = "Update manifests"
set = { update = [true] }
lock = ["update"]
fields = ["update"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["env_name", "list", "update", "force", "skip_existing"]