{
  "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
    },
    "subcommand": [
      {
        "path": [
          "install"
        ],
        "label": "Install an **env",
        "description": "Install a language environment manager, or list/initialize/update the install manifests.",
        "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>\n#        anyenv install -l|--list\n#        anyenv install --init       [git-url] [git-ref]\n#        anyenv install --force-init [git-url] [git-ref]\n#        anyenv install --update\n#   -l/--list          List all available **envs\n#   -f/--force         Install even if the **env appears to be installed already\n#   -s/--skip-existing Skip if the version appears to be installed already\n#   --init             Initialize install manifests with specified git repo or anyenv/anyenv-install\n#   --force-init       Initialize install manifests without confirmation\n#   --update           Update install manifests"
          }
        ],
        "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"
            ]
          },
          {
            "id": "list",
            "label": "List available",
            "type": "boolean",
            "option": [
              "--list",
              "-l"
            ],
            "sources": [
              "script"
            ]
          },
          {
            "id": "force",
            "label": "Force reinstall",
            "type": "boolean",
            "option": [
              "--force",
              "-f"
            ],
            "effect": "overwrite",
            "sources": [
              "script"
            ]
          },
          {
            "id": "skip_existing",
            "label": "Skip if installed",
            "type": "boolean",
            "option": [
              "--skip-existing",
              "-s"
            ],
            "sources": [
              "script"
            ]
          },
          {
            "id": "update",
            "label": "Update manifests",
            "type": "boolean",
            "option": [
              "--update"
            ],
            "sources": [
              "script"
            ]
          }
        ],
        "task": [
          {
            "id": "install",
            "label": "Install an environment",
            "fields": [
              "env_name",
              "force",
              "skip_existing"
            ],
            "required": [
              "env_name"
            ]
          },
          {
            "id": "list",
            "label": "List available",
            "set": {
              "list": [
                true
              ]
            },
            "lock": [
              "list"
            ],
            "fields": [
              "list"
            ]
          },
          {
            "id": "update",
            "label": "Update manifests",
            "set": {
              "update": [
                true
              ]
            },
            "lock": [
              "update"
            ],
            "fields": [
              "update"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "env_name",
              "list",
              "update",
              "force",
              "skip_existing"
            ]
          }
        ]
      }
    ]
  }
}
