11# Python versions
22#
33# Used by the add command to specify for which Python version the dependency must be installed
4- def "nu-complete poetry python-versions" [] nothing -> list <string > {
4+ def "nu-complete poetry python-versions" []: nothing -> list <string > {
55 [" 3.8" " 3.9" " 3.10" " 3.11" " 3.12" " 3.13" ]
66}
77
88# Default package source names
99#
1010# The default package source names available to install packages from
11- def "nu-complete poetry default-package-source-names" [] nothing -> list <string > {
11+ def "nu-complete poetry default-package-source-names" []: nothing -> list <string > {
1212 [pypi test test.pypi.org internal-pypi ]
1313}
1414
1515# Default package source urls
1616#
1717# The default package source urls available to install packages from
18- def "nu-complete poetry default-package-source-urls" [] nothing -> list <string > {
18+ def "nu-complete poetry default-package-source-urls" []: nothing -> list <string > {
1919 [" https://" " https://test.pypi.org/legacy/" " https://pypi.org/legacy" ]
2020}
2121
2222# Default package sources
2323#
2424# The default sources to use to install the package, beyond the ones defined within pyproject.toml available for the add command
25- def "nu-complete poetry default-package-sources" [] nothing -> list <string > {
25+ def "nu-complete poetry default-package-sources" []: nothing -> list <string > {
2626 (nu-complete poetry default-package-source-names ) | append (
2727 nu-complete poetry default-package-source-urls
2828 )
@@ -31,21 +31,21 @@ def "nu-complete poetry default-package-sources" [] nothing -> list<string> {
3131# Build formats
3232#
3333# Used by the build command to limit the built package to either sdist or wheel
34- def "nu-complete poetry build-formats" [] nothing -> list <string > {
34+ def "nu-complete poetry build-formats" []: nothing -> list <string > {
3535 [sdist wheel ]
3636}
3737
3838# Default usernames
3939#
4040# The current username which is the default suggestion for logging in to services with a username
41- def "nu-complete poetry default-usernames" [] nothing -> list <string > {
41+ def "nu-complete poetry default-usernames" []: nothing -> list <string > {
4242 [(whoami )]
4343}
4444
4545# Setting keys
4646#
4747# The available setting keys that can be retrieved/changed by the config command
48- def "nu-complete poetry setting-keys" [] nothing -> list <string > {
48+ def "nu-complete poetry setting-keys" []: nothing -> list <string > {
4949 [
5050 cache-dir
5151 experimental.system-git-client
@@ -87,7 +87,7 @@ def "nu-complete poetry setting-keys" [] nothing -> list<string> {
8787# Setting keys
8888#
8989# The possible values for the given setting key, that the config command can chenge the respective setting key to
90- def "nu-complete poetry setting-values" [context : string ] nothing -> list <any > {
90+ def "nu-complete poetry setting-values" [context : string ]: nothing -> list <any > {
9191 let $final_context : string = ($context | str trim | split row " " | last )
9292
9393 if (
@@ -173,21 +173,21 @@ def "nu-complete poetry setting-values" [context: string] nothing -> list<any> {
173173# Export formats
174174#
175175# The list of possible formats supported by the export command
176- def "nu-complete poetry export-formats" [] nothing -> list <string > {
176+ def "nu-complete poetry export-formats" []: nothing -> list <string > {
177177 [" requirements.txt" " constraints.txt" ]
178178}
179179
180180# Default dependency groups
181181#
182182# A default selection of dependency groups
183- def "nu-complete poetry default-dependency-groups" [] nothing -> list <string > {
183+ def "nu-complete poetry default-dependency-groups" []: nothing -> list <string > {
184184 [main dev deploy test testing tests development developing deployment deploying ]
185185}
186186
187187# Commands
188188#
189189# The list of command names available to have a help message displayed using the help command
190- def "nu-complete poetry commands" [] nothing -> list <string > {
190+ def "nu-complete poetry commands" []: nothing -> list <string > {
191191 [
192192 about
193193 add
@@ -233,35 +233,35 @@ def "nu-complete poetry commands" [] nothing -> list<string> {
233233# Licenses
234234#
235235# The available license IDs for project.toml
236- def "nu-complete poetry licenses" [] nothing -> list <string > {
236+ def "nu-complete poetry licenses" []: nothing -> list <string > {
237237 http get https://spdx.org/licenses/licenses.json | get licenses | get licenseId
238238}
239239
240240# ReadMe file formats
241241#
242242# A default selection of file extensions used for ReadMe files
243- def "nu-complete poetry readme-file-formats" [] nothing -> list <string > {
243+ def "nu-complete poetry readme-file-formats" []: nothing -> list <string > {
244244 [md txt adoc rst rft pdf html dbk odf tex latex texi asciidoc markdown xhtml xht htm xml ]
245245}
246246
247247# Namespaces
248248#
249249# The list of namespaces available to list poetry commands about
250- def "nu-complete poetry namespaces" [] nothing -> list <string > {
250+ def "nu-complete poetry namespaces" []: nothing -> list <string > {
251251 [cache debug env self source ]
252252}
253253
254254# Default repositories
255255#
256256# The default set of repositories available to publish this projects package to
257- def "nu-complete poetry default-repositories" [] nothing -> list <string > {
257+ def "nu-complete poetry default-repositories" []: nothing -> list <string > {
258258 nu-complete poetry default-package-sources
259259}
260260
261261# Default dist directories
262262#
263263# The default set of directories where build artifacts may be stored
264- def "nu-complete poetry default-dist-directories" [] nothing -> list <string > {
264+ def "nu-complete poetry default-dist-directories" []: nothing -> list <string > {
265265 (
266266 ls | get name | where (($it | path type ) == " dir" ) | each {|it | $it | path expand }
267267 ) | prepend ($env .PWD | path join " dist" )
@@ -270,21 +270,21 @@ def "nu-complete poetry default-dist-directories" [] nothing -> list<string> {
270270# Caches
271271#
272272# The list of available poetry caches, used to remove one that is listed
273- def "nu-complete poetry caches" [] nothing -> list <string > {
273+ def "nu-complete poetry caches" []: nothing -> list <string > {
274274 poetry cache list | lines
275275}
276276
277277# Virtual environments
278278#
279279# The list of available virtual environements, used to remove one that is listed
280- def "nu-complete poetry virtual-environments" [] nothing -> list <string > {
280+ def "nu-complete poetry virtual-environments" []: nothing -> list <string > {
281281 poetry env list -- full-path | lines | each {|| (split row " " ).0 }
282282}
283283
284284# Source priorities
285285#
286286# Used by the source commands to set/display the priority of the source
287- def "nu-complete poetry source-priorities" [] nothing -> list <string > {
287+ def "nu-complete poetry source-priorities" []: nothing -> list <string > {
288288 [default primary secondary supplemental explicit ]
289289}
290290
0 commit comments