7b29684a3087c881f240ebb74bd387c69f0ffcc6

Author
Raul Ferreira <raulmendesferreira@gmail.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

swiftpm: update swift completion script (#7243)

Diff

This diff is truncated to protect this page.

  1diff --git a/plugins/swiftpm/_swift b/plugins/swiftpm/_swift
  2index 901b5d9e2f1c60aad69e16a6696f0481c9fe2984..bed6e13a76f8c05c02e4ba5a2eaf4900032382a1 100644
  3--- a/plugins/swiftpm/_swift
  4+++ b/plugins/swiftpm/_swift
  5@@ -72,14 +72,16 @@ _swift_build() {
  6         "--build-path[Specify build/cache directory ]:Specify build/cache directory :_files"
  7         "(--chdir -C)"{--chdir,-C}"[]: :_files"
  8         "--package-path[Change working directory before any other operation]:Change working directory before any other operation:_files"
  9+        "--sanitize[Turn on runtime checks for erroneous behavior]: :{_values '' 'address[enable Address sanitizer]' 'thread[enable Thread sanitizer]'}"
 10         "--disable-prefetching[]"
 11+        "--skip-update[Skip updating dependencies from their remote during a resolution]"
 12         "--disable-sandbox[Disable using the sandbox when executing subprocesses]"
 13         "--version[]"
 14         "--destination[]: :_files"
 15         "(--verbose -v)"{--verbose,-v}"[Increase verbosity of informational output]"
 16-        "--no-static-swift-stdlib[Do not link Swift stdlib statically]"
 17+        "--no-static-swift-stdlib[Do not link Swift stdlib statically \[default\]]"
 18         "--static-swift-stdlib[Link Swift stdlib statically]"
 19-        "--enable-build-manifest-caching[Enable llbuild manifest caching [Experimental]]"
 20+        "--enable-build-manifest-caching[Enable llbuild manifest caching \[Experimental\]]"
 21         "--build-tests[Build both source and test targets]"
 22         "--product[Build the specified product]:Build the specified product: "
 23         "--target[Build the specified target]:Build the specified target: "
 24@@ -106,14 +108,16 @@ _swift_run() {
 25         "--build-path[Specify build/cache directory ]:Specify build/cache directory :_files"
 26         "(--chdir -C)"{--chdir,-C}"[]: :_files"
 27         "--package-path[Change working directory before any other operation]:Change working directory before any other operation:_files"
 28+        "--sanitize[Turn on runtime checks for erroneous behavior]: :{_values '' 'address[enable Address sanitizer]' 'thread[enable Thread sanitizer]'}"
 29         "--disable-prefetching[]"
 30+        "--skip-update[Skip updating dependencies from their remote during a resolution]"
 31         "--disable-sandbox[Disable using the sandbox when executing subprocesses]"
 32         "--version[]"
 33         "--destination[]: :_files"
 34         "(--verbose -v)"{--verbose,-v}"[Increase verbosity of informational output]"
 35-        "--no-static-swift-stdlib[Do not link Swift stdlib statically]"
 36+        "--no-static-swift-stdlib[Do not link Swift stdlib statically \[default\]]"
 37         "--static-swift-stdlib[Link Swift stdlib statically]"
 38-        "--enable-build-manifest-caching[Enable llbuild manifest caching [Experimental]]"
 39+        "--enable-build-manifest-caching[Enable llbuild manifest caching \[Experimental\]]"
 40         "--skip-build[Skip building the executable product]"
 41     )
 42     _arguments $arguments && return
 43@@ -136,14 +140,16 @@ _swift_package() {
 44         "--build-path[Specify build/cache directory ]:Specify build/cache directory :_files"
 45         "(--chdir -C)"{--chdir,-C}"[]: :_files"
 46         "--package-path[Change working directory before any other operation]:Change working directory before any other operation:_files"
 47+        "--sanitize[Turn on runtime checks for erroneous behavior]: :{_values '' 'address[enable Address sanitizer]' 'thread[enable Thread sanitizer]'}"
 48         "--disable-prefetching[]"
 49+        "--skip-update[Skip updating dependencies from their remote during a resolution]"
 50         "--disable-sandbox[Disable using the sandbox when executing subprocesses]"
 51         "--version[]"
 52         "--destination[]: :_files"
 53         "(--verbose -v)"{--verbose,-v}"[Increase verbosity of informational output]"
 54-        "--no-static-swift-stdlib[Do not link Swift stdlib statically]"
 55+        "--no-static-swift-stdlib[Do not link Swift stdlib statically \[default\]]"
 56         "--static-swift-stdlib[Link Swift stdlib statically]"
 57-        "--enable-build-manifest-caching[Enable llbuild manifest caching [Experimental]]"
 58+        "--enable-build-manifest-caching[Enable llbuild manifest caching \[Experimental\]]"
 59         '(-): :->command'
 60         '(-)*:: :->arg'
 61     )
 62@@ -152,135 +158,133 @@ _swift_package() {
 63         (command)
 64             local modes
 65             modes=(
 66+                'edit:Put a package in editable mode'
 67+                'clean:Delete build artifacts'
 68+                'init:Initialize a new package'
 69+                'dump-package:Print parsed Package.swift as JSON'
 70+                'describe:Describe the current package'
 71+                'unedit:Remove a package from editable mode'
 72                 'update:Update package dependencies'
 73-                'show-dependencies:Print the resolved dependency graph'
 74-                'resolve:Resolve package dependencies'
 75-                'fetch:'
 76                 'completion-tool:Completion tool (for shell completions)'
 77-                'edit:Put a package in editable mode'
 78                 'tools-version:Manipulate tools version of the current package'
 79-                'describe:Describe the current package'
 80-                'clean:Delete build artifacts'
 81                 'reset:Reset the complete cache/build directory'
 82-                'unedit:Remove a package from editable mode'
 83+                'resolve:Resolve package dependencies'
 84                 'generate-xcodeproj:Generates an Xcode project'
 85-                'init:Initialize a new package'
 86-                'dump-package:Print parsed Package.swift as JSON'
 87+                'fetch:'
 88+                'show-dependencies:Print the resolved dependency graph'
 89             )
 90             _describe "mode" modes
 91             ;;
 92         (arg)
 93             case ${words[1]} in
 94-                (update)
 95-                    _swift_package_update
 96+                (edit)
 97+                    _swift_package_edit
 98                     ;;
 99-                (show-dependencies)
100-                    _swift_package_show-dependencies
101+                (clean)
102+                    _swift_package_clean
103                     ;;
104-                (resolve)