Skip to content

Commit

Permalink
feat(completions): add pdm
Browse files Browse the repository at this point in the history
  • Loading branch information
abgox committed Jul 18, 2024
1 parent 426e169 commit 6c2e920
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 0 deletions.
5 changes: 5 additions & 0 deletions completions/pdm/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"language": [
"en-US"
]
}
1 change: 1 addition & 0 deletions completions/pdm/guid.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2c8c834d-7b13-407d-a8d3-ab5370135cf7
166 changes: 166 additions & 0 deletions completions/pdm/language/en-US.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
{
"root": [
{
"name": "add",
"tip": "Add package(s) to pyproject.toml and install them"
},
{
"name": "build",
"tip": "Build artifacts for distribution"
},
{
"name": "cache",
"tip": "Control the caches of PDM"
},
{
"name": "completion",
"tip": "Generate completion scripts for the given shell"
},
{
"name": "config",
"tip": "Display the current configuration"
},
{
"name": "export",
"tip": "Export the locked packages set to other formats"
},
{
"name": "fix",
"tip": "Fix the project problems according to the latest version of PDM"
},
{
"name": "import",
"tip": "Import project metadata from other formats"
},
{
"name": "info",
"tip": "Show the project information"
},
{
"name": "init",
"tip": "Initialize a pyproject.toml for PDM"
},
{
"name": "install",
"tip": "Install dependencies from lock file"
},
{
"name": "list",
"tip": "List packages installed in the current working set"
},
{
"name": "lock",
"tip": "Resolve and lock dependencies"
},
{
"name": "outdated",
"tip": "Check for outdated packages and list the latest versions on indexes."
},
{
"name": "publish",
"tip": "Build and publish the project to PyPI"
},
{
"name": "python",
"alias": ["py"],
"tip": ["U: python|py\n", "Manage installed Python interpreters"]
},
{
"name": "remove",
"tip": "Remove packages from pyproject.toml"
},
{
"name": "run",
"tip": "Run commands or scripts with local packages loaded"
},
{
"name": "search",
"tip": "Search for PyPI packages"
},
{
"name": "self",
"alias": ["plugin"],
"tip": [
"U: self|plugin\n",
"Manage the PDM program itself (previously known as plugin)"
]
},
{
"name": "show",
"tip": "Show the package information"
},
{
"name": "sync",
"tip": "Synchronize the current working set with lock file"
},
{
"name": "update",
"tip": "Update package(s) in pyproject.toml"
},
{
"name": "use",
"tip": "Use the given python version or path as base interpreter. If not found, PDM will try to install one."
},
{
"name": "venv",
"tip": "Virtualenv management"
}
],
"options": [
{
"name": "--version",
"alias": ["-V"],
"tip": "Show the version."
}
],
"common_options": [
{
"name": "--help",
"alias": ["-h"],
"tip": "Show help."
},
{
"name": "-c",
"alias": ["--config"],
"symbol": "WriteSpaceTab",
"tip": [
"U: -c|--config <CONFIG>\n",
"Specify another config file path. [env var: PDM_CONFIG_FILE]"
]
},
{
"name": "-v",
"alias": ["--verbose", "-vv"],
"tip": "Use `-v` for detailed output and `-vv` for more detailed"
},
{
"name": "-q",
"alias": ["--quiet"],
"tip": "Suppress output"
},
{
"name": "--no-cache",
"tip": [
"Disable the cache for the current command. [env var: PDM_NO_CACHE]"
]
},
{
"name": "-I",
"alias": ["--ignore-python"],
"tip": "Ignore the Python path saved in .pdm-python. [env var: PDM_IGNORE_SAVED_PYTHON]"
},
{
"name": "--pep582",
"tip": [
"U: --pep582 [SHELL]\n",
"Print the command line to be eval'd by the shell."
]
}
],
"info": {
"completion_info": {
"url": "https://github.com/pdm-project/pdm",
"description": "A modern Python package and dependency manager supporting the latest PEP standards"
}
}
}
17 changes: 17 additions & 0 deletions completions/pdm/language/zh-CN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"root": [],
"options": [
{
"name": "--version",
"alias": ["-V"],
"tip": "显示版本信息"
}
],
"common_options": [
{
"name": "--help",
"alias": ["-h"],
"tip": "显示帮助信息"
}
]
}

0 comments on commit 6c2e920

Please sign in to comment.