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
[[dotfiles.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 }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/poetry.ts"
license = "MIT"
[[commands.subcommand]]
path = ["new"]
label = "New project"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/poetry.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "path"
label = "Project path"
type = "path"
position = 0
path = { kind = "directory", role = "output" }
sources = ["fig"]
[[commands.subcommand.field]]
id = "src"
label = "Use src layout"
type = "boolean"
option = ["--src"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "new"
label = "Create project"
fields = ["path", "src"]
required = ["path"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["path", "src"]
[[commands.subcommand]]
path = ["add"]
label = "Add dependencies"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/poetry.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "packages"
label = "Packages"
type = "string"
position = 0
multiple = true
sources = ["fig"]
[[commands.subcommand.field]]
id = "optional"
label = "Optional dependency"
type = "boolean"
option = ["--optional"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "editable"
label = "Editable (vcs/path)"
type = "boolean"
option = ["--editable"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "allow_prereleases"
label = "Allow prereleases"
type = "boolean"
option = ["--allow-prereleases"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "dry_run"
label = "Dry run"
type = "boolean"
option = ["--dry-run"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "lock"
label = "Only update lockfile"
type = "boolean"
option = ["--lock"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "add"
label = "Add"
fields = ["packages", "optional", "editable", "allow_prereleases", "dry_run", "lock"]
required = ["packages"]
[[commands.subcommand.task]]
id = "preview"
label = "Dry run"
set = { dry_run = [true] }
fields = ["packages", "dry_run"]
required = ["packages"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["packages", "optional", "editable", "allow_prereleases", "dry_run"]
[[commands.subcommand.group]]
id = "advanced"
label = "Advanced"
fields = ["lock"]
[[commands.subcommand]]
path = ["install"]
label = "Install dependencies"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/poetry.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "no_root"
label = "Skip the root package"
type = "boolean"
option = ["--no-root"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "sync"
label = "Sync environment with lock"
type = "boolean"
option = ["--sync"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "dry_run"
label = "Dry run"
type = "boolean"
option = ["--dry-run"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "all_extras"
label = "All extras"
type = "boolean"
option = ["--all-extras"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "no_directory"
label = "Skip directory dependencies"
type = "boolean"
option = ["--no-directory"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "only_root"
label = "Root package only"
type = "boolean"
option = ["--only-root"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "compile"
label = "Compile bytecode"
type = "boolean"
option = ["--compile"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "install"
label = "Install"
fields = ["no_root", "sync", "dry_run", "all_extras", "no_directory", "only_root", "compile"]
required = []
[[commands.subcommand.task]]
id = "ci"
label = "Exact sync, no root"
set = { sync = [true], no_root = [true] }
fields = ["sync", "no_root"]
required = []
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["no_root", "sync", "dry_run", "all_extras", "no_directory"]
[[commands.subcommand.group]]
id = "advanced"
label = "Advanced"
fields = ["only_root", "compile"]
[[commands.subcommand]]
path = ["run"]
label = "Run a command"
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/poetry.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "args"
label = "Command and arguments"
type = "string"
position = 0
multiple = true
sources = ["fig"]
[[commands.subcommand.task]]
id = "run"
label = "Run"
fields = ["args"]
required = ["args"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["args"]