|
3 | 3 |
|
4 | 4 | function __fish_pdm_a919b69078acdf0a_complete_no_subcommand
|
5 | 5 | for i in (commandline -opc)
|
6 |
| - if contains -- $i add build cache completion config export fix import info init install list lock outdated plugin publish py python remove run search self show sync update use venv |
| 6 | + if contains -- $i add build cache completion config export fix import info init install list lock new outdated plugin publish py python remove run search self show sync update use venv |
7 | 7 | return 1
|
8 | 8 | end
|
9 | 9 | end
|
@@ -122,7 +122,7 @@ complete -c pdm -f -n '__fish_pdm_a919b69078acdf0a_complete_no_subcommand' -a ex
|
122 | 122 | complete -c pdm -A -n '__fish_seen_subcommand_from export' -l dev -d 'Select dev dependencies'
|
123 | 123 | complete -c pdm -A -n '__fish_seen_subcommand_from export' -l editable-self -d 'Include the project itself as an editable dependency'
|
124 | 124 | complete -c pdm -A -n '__fish_seen_subcommand_from export' -l expandvars -d 'Expand environment variables in requirements'
|
125 |
| -complete -c pdm -A -n '__fish_seen_subcommand_from export' -l format -d 'Only requirements.txt is supported for now.' |
| 125 | +complete -c pdm -A -n '__fish_seen_subcommand_from export' -l format -d 'Export to requirements.txt format or pylock.toml format' |
126 | 126 | complete -c pdm -A -n '__fish_seen_subcommand_from export' -l global -d 'Use the global project, supply the project root with `-p` option'
|
127 | 127 | complete -c pdm -A -n '__fish_seen_subcommand_from export' -l group -d 'Select group of optional-dependencies separated by comma or dependency-groups (with `-d`). Can be supplied multiple times, use ":all" to include all groups under the same species.'
|
128 | 128 | complete -c pdm -A -n '__fish_seen_subcommand_from export' -l help -d 'Show this help message and exit.'
|
@@ -188,6 +188,8 @@ complete -c pdm -A -n '__fish_seen_subcommand_from init' -l dist -d 'Create a pa
|
188 | 188 | complete -c pdm -A -n '__fish_seen_subcommand_from init' -l global -d 'Use the global project, supply the project root with `-p` option'
|
189 | 189 | complete -c pdm -A -n '__fish_seen_subcommand_from init' -l help -d 'Show this help message and exit.'
|
190 | 190 | complete -c pdm -A -n '__fish_seen_subcommand_from init' -l license -d 'Specify the license (SPDX name)'
|
| 191 | +complete -c pdm -A -n '__fish_seen_subcommand_from init' -l name -d 'Specify the project name' |
| 192 | +complete -c pdm -A -n '__fish_seen_subcommand_from init' -l no-git -d 'Do not initialize a git repository' |
191 | 193 | complete -c pdm -A -n '__fish_seen_subcommand_from init' -l non-interactive -d 'Don\'t ask questions but use default values'
|
192 | 194 | complete -c pdm -A -n '__fish_seen_subcommand_from init' -l overwrite -d 'Overwrite existing files'
|
193 | 195 | complete -c pdm -A -n '__fish_seen_subcommand_from init' -l project -d 'Specify another path as the project root, which changes the base of pyproject.toml and __pypackages__ [env var: PDM_PROJECT]'
|
@@ -274,6 +276,22 @@ complete -c pdm -A -n '__fish_seen_subcommand_from lock' -l update-reuse-install
|
274 | 276 | complete -c pdm -A -n '__fish_seen_subcommand_from lock' -l verbose -d 'Use `-v` for detailed output and `-vv` for more detailed'
|
275 | 277 | complete -c pdm -A -n '__fish_seen_subcommand_from lock' -l without -d 'Exclude groups of optional-dependencies or dependency-groups'
|
276 | 278 |
|
| 279 | +# new |
| 280 | +complete -c pdm -f -n '__fish_pdm_a919b69078acdf0a_complete_no_subcommand' -a new -d 'Create a new Python project at <project_path>' |
| 281 | +complete -c pdm -A -n '__fish_seen_subcommand_from new' -l backend -d 'Specify the build backend, which implies --dist' |
| 282 | +complete -c pdm -A -n '__fish_seen_subcommand_from new' -l dist -d 'Create a package for distribution' |
| 283 | +complete -c pdm -A -n '__fish_seen_subcommand_from new' -l help -d 'Show this help message and exit.' |
| 284 | +complete -c pdm -A -n '__fish_seen_subcommand_from new' -l license -d 'Specify the license (SPDX name)' |
| 285 | +complete -c pdm -A -n '__fish_seen_subcommand_from new' -l name -d 'Specify the project name' |
| 286 | +complete -c pdm -A -n '__fish_seen_subcommand_from new' -l no-git -d 'Do not initialize a git repository' |
| 287 | +complete -c pdm -A -n '__fish_seen_subcommand_from new' -l non-interactive -d 'Don\'t ask questions but use default values' |
| 288 | +complete -c pdm -A -n '__fish_seen_subcommand_from new' -l overwrite -d 'Overwrite existing files' |
| 289 | +complete -c pdm -A -n '__fish_seen_subcommand_from new' -l project-version -d 'Specify the project\'s version' |
| 290 | +complete -c pdm -A -n '__fish_seen_subcommand_from new' -l python -d 'Specify the Python version/path to use' |
| 291 | +complete -c pdm -A -n '__fish_seen_subcommand_from new' -l quiet -d 'Suppress output' |
| 292 | +complete -c pdm -A -n '__fish_seen_subcommand_from new' -l skip -d 'Skip some tasks and/or hooks by their comma-separated names. Can be supplied multiple times. Use ":all" to skip all hooks. Use ":pre" and ":post" to skip all pre or post hooks.' |
| 293 | +complete -c pdm -A -n '__fish_seen_subcommand_from new' -l verbose -d 'Use `-v` for detailed output and `-vv` for more detailed' |
| 294 | + |
277 | 295 | # outdated
|
278 | 296 | complete -c pdm -f -n '__fish_pdm_a919b69078acdf0a_complete_no_subcommand' -a outdated -d 'Check for outdated packages and list the latest versions on indexes.'
|
279 | 297 | complete -c pdm -A -n '__fish_seen_subcommand_from outdated' -l global -d 'Use the global project, supply the project root with `-p` option'
|
|
0 commit comments