{
  "id": "poetry",
  "name": "Poetry",
  "homepage": "https://python-poetry.org",
  "description": "Python packaging and dependency management made easy.",
  "icon": "theSVG:poetry",
  "executables": [
    "poetry"
  ],
  "dotfiles": {
    "paths": [
      "[appData]/pypoetry/config.toml"
    ],
    "exclude": [
      "[cacheHome]/pypoetry/"
    ],
    "secret": [
      "[appData]/pypoetry/auth.toml"
    ],
    "side_effect": false,
    "machine_lines": [
      {
        "file": "[appData]/pypoetry/config.toml",
        "match": {
          "key_path": [
            "cache-dir",
            "virtualenvs.path"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Poetry",
    "description": "Create projects, add dependencies, install and run commands. Options whose completion data lacks a value type (such as --group and --name) are left out.",
    "quality": "ai-draft",
    "base": "fig:poetry",
    "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/poetry.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "new"
        ],
        "label": "New project",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/poetry.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "path",
            "label": "Project path",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "directory",
              "role": "output"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "src",
            "label": "Use src layout",
            "type": "boolean",
            "option": [
              "--src"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "new",
            "label": "Create project",
            "fields": [
              "path",
              "src"
            ],
            "required": [
              "path"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "path",
              "src"
            ]
          }
        ]
      },
      {
        "path": [
          "add"
        ],
        "label": "Add dependencies",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/poetry.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "packages",
            "label": "Packages",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "optional",
            "label": "Optional dependency",
            "type": "boolean",
            "option": [
              "--optional"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "editable",
            "label": "Editable (vcs/path)",
            "type": "boolean",
            "option": [
              "--editable"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "allow_prereleases",
            "label": "Allow prereleases",
            "type": "boolean",
            "option": [
              "--allow-prereleases"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dry_run",
            "label": "Dry run",
            "type": "boolean",
            "option": [
              "--dry-run"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "lock",
            "label": "Only update lockfile",
            "type": "boolean",
            "option": [
              "--lock"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "add",
            "label": "Add",
            "fields": [
              "packages",
              "optional",
              "editable",
              "allow_prereleases",
              "dry_run",
              "lock"
            ],
            "required": [
              "packages"
            ]
          },
          {
            "id": "preview",
            "label": "Dry run",
            "set": {
              "dry_run": [
                true
              ]
            },
            "fields": [
              "packages",
              "dry_run"
            ],
            "required": [
              "packages"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "packages",
              "optional",
              "editable",
              "allow_prereleases",
              "dry_run"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "lock"
            ]
          }
        ]
      },
      {
        "path": [
          "install"
        ],
        "label": "Install dependencies",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/poetry.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "no_root",
            "label": "Skip the root package",
            "type": "boolean",
            "option": [
              "--no-root"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "sync",
            "label": "Sync environment with lock",
            "type": "boolean",
            "option": [
              "--sync"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dry_run",
            "label": "Dry run",
            "type": "boolean",
            "option": [
              "--dry-run"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "all_extras",
            "label": "All extras",
            "type": "boolean",
            "option": [
              "--all-extras"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_directory",
            "label": "Skip directory dependencies",
            "type": "boolean",
            "option": [
              "--no-directory"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "only_root",
            "label": "Root package only",
            "type": "boolean",
            "option": [
              "--only-root"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "compile",
            "label": "Compile bytecode",
            "type": "boolean",
            "option": [
              "--compile"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "install",
            "label": "Install",
            "fields": [
              "no_root",
              "sync",
              "dry_run",
              "all_extras",
              "no_directory",
              "only_root",
              "compile"
            ],
            "required": []
          },
          {
            "id": "ci",
            "label": "Exact sync, no root",
            "set": {
              "sync": [
                true
              ],
              "no_root": [
                true
              ]
            },
            "fields": [
              "sync",
              "no_root"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "no_root",
              "sync",
              "dry_run",
              "all_extras",
              "no_directory"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "only_root",
              "compile"
            ]
          }
        ]
      },
      {
        "path": [
          "run"
        ],
        "label": "Run a command",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/poetry.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "args",
            "label": "Command and arguments",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "Run",
            "fields": [
              "args"
            ],
            "required": [
              "args"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "args"
            ]
          }
        ]
      }
    ]
  }
}
