2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#compdef swift
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								local context state state_descr line
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								typeset -A opt_args
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments -C \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        '(- :)--help[prints the synopsis and a list of the most commonly used commands]: :->arg' \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        '(-): :->command' \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        '(-)*:: :->arg' && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    case $state in
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        (command)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            local tools
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            tools=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'build:build sources into binary products'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'run:build and run an executable product'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'package:perform operations on Swift packages'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'test:build and run tests'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            _alternative \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'tools:common:{_describe "tool" tools }' \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'compiler: :_swift_compiler' && _ret=0
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        (arg)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            case ${words[1]} in
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                (build)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_build
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                (run)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_run
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                (package)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                (test)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_test
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                (*)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_compiler
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            esac
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    esac
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift_dependency() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    local dependencies
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    dependencies=( $(swift package completion-tool list-dependencies) )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _describe '' dependencies
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift_executable() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    local executables
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    executables=( $(swift package completion-tool list-executables) )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _describe '' executables
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# Generates completions for swift build
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# In the final compdef file, set the following file header:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#     #compdef _swift_build
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#     local context state state_descr line
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#     typeset -A opt_args
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift_build() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xcc[Pass flag through to all C compiler invocations]:Pass flag through to all C compiler invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xswiftc[Pass flag through to all Swift compiler invocations]:Pass flag through to all Swift compiler invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xlinker[Pass flag through to all linker invocations]:Pass flag through to all linker invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xcxx[Pass flag through to all C++ compiler invocations]:Pass flag through to all C++ compiler invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "(--configuration -c)"{--configuration,-c}"[Build with configuration (debug|release) ]: :{_values '' 'debug[build with DEBUG configuration]' 'release[build with RELEASE configuration]'}"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--build-path[Specify build/cache directory ]:Specify build/cache directory :_files"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "(--chdir -C)"{--chdir,-C}"[]: :_files"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--package-path[Change working directory before any other operation]:Change working directory before any other operation:_files"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--sanitize[Turn on runtime checks for erroneous behavior]: :{_values '' 'address[enable Address sanitizer]' 'thread[enable Thread sanitizer]' 'undefined[enable Undefined Behavior sanitizer]'}"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--disable-prefetching[]"
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--skip-update[Skip updating dependencies from their remote during a resolution]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--disable-sandbox[Disable using the sandbox when executing subprocesses]"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--disable-package-manifest-caching[Disable caching Package.swift manifests]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--version[]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--destination[]: :_files"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "(--verbose -v)"{--verbose,-v}"[Increase verbosity of informational output]"
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--no-static-swift-stdlib[Do not link Swift stdlib statically \[default\]]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--static-swift-stdlib[Link Swift stdlib statically]"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--enable-llbuild-library[Enable building with the llbuild library]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--force-resolved-versions[]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--disable-automatic-resolution[Disable automatic resolution if Package.resolved file is out-of-date]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--enable-index-store[Enable indexing-while-building feature]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--disable-index-store[Disable indexing-while-building feature]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--enable-pubgrub-resolver[\[Experimental\] Enable the new Pubgrub dependency resolver]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--enable-parseable-module-interfaces[]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--build-tests[Build both source and test targets]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--product[Build the specified product]:Build the specified product: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--target[Build the specified target]:Build the specified target: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--show-bin-path[Print the binary output path]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# Generates completions for swift run
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# In the final compdef file, set the following file header:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#     #compdef _swift_run
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#     local context state state_descr line
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#     typeset -A opt_args
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift_run() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        ":The executable to run:_swift_executable"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xcc[Pass flag through to all C compiler invocations]:Pass flag through to all C compiler invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xswiftc[Pass flag through to all Swift compiler invocations]:Pass flag through to all Swift compiler invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xlinker[Pass flag through to all linker invocations]:Pass flag through to all linker invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xcxx[Pass flag through to all C++ compiler invocations]:Pass flag through to all C++ compiler invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "(--configuration -c)"{--configuration,-c}"[Build with configuration (debug|release) ]: :{_values '' 'debug[build with DEBUG configuration]' 'release[build with RELEASE configuration]'}"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--build-path[Specify build/cache directory ]:Specify build/cache directory :_files"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "(--chdir -C)"{--chdir,-C}"[]: :_files"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--package-path[Change working directory before any other operation]:Change working directory before any other operation:_files"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--sanitize[Turn on runtime checks for erroneous behavior]: :{_values '' 'address[enable Address sanitizer]' 'thread[enable Thread sanitizer]' 'undefined[enable Undefined Behavior sanitizer]'}"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--disable-prefetching[]"
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--skip-update[Skip updating dependencies from their remote during a resolution]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--disable-sandbox[Disable using the sandbox when executing subprocesses]"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--disable-package-manifest-caching[Disable caching Package.swift manifests]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--version[]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--destination[]: :_files"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "(--verbose -v)"{--verbose,-v}"[Increase verbosity of informational output]"
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--no-static-swift-stdlib[Do not link Swift stdlib statically \[default\]]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--static-swift-stdlib[Link Swift stdlib statically]"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--enable-llbuild-library[Enable building with the llbuild library]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--force-resolved-versions[]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--disable-automatic-resolution[Disable automatic resolution if Package.resolved file is out-of-date]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--enable-index-store[Enable indexing-while-building feature]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--disable-index-store[Disable indexing-while-building feature]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--enable-pubgrub-resolver[\[Experimental\] Enable the new Pubgrub dependency resolver]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--enable-parseable-module-interfaces[]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--skip-build[Skip building the executable product]"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--build-tests[Build both source and test targets]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--repl[Launch Swift REPL for the package]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# Generates completions for swift package
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# In the final compdef file, set the following file header:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#     #compdef _swift_package
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#     local context state state_descr line
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#     typeset -A opt_args
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift_package() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xcc[Pass flag through to all C compiler invocations]:Pass flag through to all C compiler invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xswiftc[Pass flag through to all Swift compiler invocations]:Pass flag through to all Swift compiler invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xlinker[Pass flag through to all linker invocations]:Pass flag through to all linker invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xcxx[Pass flag through to all C++ compiler invocations]:Pass flag through to all C++ compiler invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "(--configuration -c)"{--configuration,-c}"[Build with configuration (debug|release) ]: :{_values '' 'debug[build with DEBUG configuration]' 'release[build with RELEASE configuration]'}"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--build-path[Specify build/cache directory ]:Specify build/cache directory :_files"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "(--chdir -C)"{--chdir,-C}"[]: :_files"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--package-path[Change working directory before any other operation]:Change working directory before any other operation:_files"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--sanitize[Turn on runtime checks for erroneous behavior]: :{_values '' 'address[enable Address sanitizer]' 'thread[enable Thread sanitizer]' 'undefined[enable Undefined Behavior sanitizer]'}"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--disable-prefetching[]"
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--skip-update[Skip updating dependencies from their remote during a resolution]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--disable-sandbox[Disable using the sandbox when executing subprocesses]"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--disable-package-manifest-caching[Disable caching Package.swift manifests]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--version[]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--destination[]: :_files"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "(--verbose -v)"{--verbose,-v}"[Increase verbosity of informational output]"
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--no-static-swift-stdlib[Do not link Swift stdlib statically \[default\]]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--static-swift-stdlib[Link Swift stdlib statically]"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--enable-llbuild-library[Enable building with the llbuild library]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--force-resolved-versions[]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--disable-automatic-resolution[Disable automatic resolution if Package.resolved file is out-of-date]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--enable-index-store[Enable indexing-while-building feature]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--disable-index-store[Disable indexing-while-building feature]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--enable-pubgrub-resolver[\[Experimental\] Enable the new Pubgrub dependency resolver]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--enable-parseable-module-interfaces[]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        '(-): :->command'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        '(-)*:: :->arg'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    case $state in
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        (command)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            local modes
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            modes=(
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                'update:Update package dependencies'
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                'describe:Describe the current package'
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                'resolve:Resolve package dependencies'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'tools-version:Manipulate tools version of the current package'
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                'unedit:Remove a package from editable mode'
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                'show-dependencies:Print the resolved dependency graph'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'fetch:'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'dump-package:Print parsed Package.swift as JSON'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'edit:Put a package in editable mode'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'config:Manipulate configuration of the package'
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								                'completion-tool:Completion tool (for shell completions)'
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                'clean:Delete build artifacts'
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								                'generate-xcodeproj:Generates an Xcode project'
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                'reset:Reset the complete cache/build directory'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'init:Initialize a new package'
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								            )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            _describe "mode" modes
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        (arg)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            case ${words[1]} in
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                (update)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_update
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                (describe)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_describe
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                (resolve)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_resolve
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                (tools-version)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_tools-version
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                (unedit)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_unedit
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                (show-dependencies)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_show-dependencies
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                (fetch)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_fetch
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                (dump-package)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_dump-package
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                (edit)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_edit
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                (config)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_config
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                (completion-tool)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_completion-tool
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                (clean)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_clean
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                (generate-xcodeproj)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_generate-xcodeproj
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                (reset)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_reset
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                (init)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_init
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            esac
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    esac
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								_swift_package_update() {
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								_swift_package_describe() {
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--type[json|text]: :{_values '' 'text[describe using text format]' 'json[describe using JSON format]'}"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								_swift_package_resolve() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        ":The name of the package to resolve:_swift_dependency"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--version[The version to resolve at]:The version to resolve at: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--branch[The branch to resolve at]:The branch to resolve at: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--revision[The revision to resolve at]:The revision to resolve at: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift_package_tools-version() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--set[Set tools version of package to the given value]:Set tools version of package to the given value: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--set-current[Set tools version of package to the current tools version in use]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift_package_unedit() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        ":The name of the package to unedit:_swift_dependency"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--force[Unedit the package even if it has uncommited and unpushed changes.]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift_package_show-dependencies() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--format[text|dot|json|flatlist]: :{_values '' 'text[list dependencies using text format]' 'dot[list dependencies using dot format]' 'json[list dependencies using JSON format]'}"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift_package_fetch() {
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								_swift_package_dump-package() {
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								_swift_package_edit() {
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        ":The name of the package to edit:_swift_dependency"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--revision[The revision to edit]:The revision to edit: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--branch[The branch to create]:The branch to create: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--path[Create or use the checkout at this path]:Create or use the checkout at this path:_files"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								_swift_package_config() {
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        '(-): :->command'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        '(-)*:: :->arg'
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    case $state in
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        (command)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            local modes
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            modes=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'unset-mirror:Remove an existing mirror'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'set-mirror:Set a mirror for a dependency'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                'get-mirror:Print mirror configuration for the given package dependency'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            _describe "mode" modes
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        (arg)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            case ${words[1]} in
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                (unset-mirror)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_config_unset-mirror
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                (set-mirror)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_config_set-mirror
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                (get-mirror)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    _swift_package_config_get-mirror
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                    ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            esac
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            ;;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    esac
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								_swift_package_config_unset-mirror() {
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--package-url[The package dependency url]:The package dependency url: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--mirror-url[The mirror url]:The mirror url: "
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								_swift_package_config_set-mirror() {
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--package-url[The package dependency url]:The package dependency url: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--mirror-url[The mirror url]:The mirror url: "
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								_swift_package_config_get-mirror() {
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--package-url[The package dependency url]:The package dependency url: "
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								_swift_package_completion-tool() {
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        ": :{_values '' 'generate-bash-script[generate Bash completion script]' 'generate-zsh-script[generate Bash completion script]' 'list-dependencies[list all dependencies' names]' 'list-executables[list all executables' names]'}"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								_swift_package_clean() {
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift_package_generate-xcodeproj() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--xcconfig-overrides[Path to xcconfig file]:Path to xcconfig file:_files"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--enable-code-coverage[Enable code coverage in the generated project]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--output[Path where the Xcode project should be generated]:Path where the Xcode project should be generated:_files"
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--legacy-scheme-generator[Use the legacy scheme generator]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--watch[Watch for changes to the Package manifest to regenerate the Xcode project]"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--skip-extra-files[Do not add file references for extra files to the generated Xcode project]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								_swift_package_reset() {
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								_swift_package_init() {
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--type[empty|library|executable|system-module]: :{_values '' 'empty[generates an empty project]' 'library[generates project for a dynamic library]' 'executable[generates a project for a cli executable]' 'system-module[generates a project for a system module]'}"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--name[Provide custom package name]:Provide custom package name: "
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# Generates completions for swift test
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# In the final compdef file, set the following file header:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#     #compdef _swift_test
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#     local context state state_descr line
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#     typeset -A opt_args
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift_test() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    arguments=(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xcc[Pass flag through to all C compiler invocations]:Pass flag through to all C compiler invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xswiftc[Pass flag through to all Swift compiler invocations]:Pass flag through to all Swift compiler invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xlinker[Pass flag through to all linker invocations]:Pass flag through to all linker invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "-Xcxx[Pass flag through to all C++ compiler invocations]:Pass flag through to all C++ compiler invocations: "
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "(--configuration -c)"{--configuration,-c}"[Build with configuration (debug|release) ]: :{_values '' 'debug[build with DEBUG configuration]' 'release[build with RELEASE configuration]'}"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--build-path[Specify build/cache directory ]:Specify build/cache directory :_files"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "(--chdir -C)"{--chdir,-C}"[]: :_files"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--package-path[Change working directory before any other operation]:Change working directory before any other operation:_files"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--sanitize[Turn on runtime checks for erroneous behavior]: :{_values '' 'address[enable Address sanitizer]' 'thread[enable Thread sanitizer]' 'undefined[enable Undefined Behavior sanitizer]'}"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--disable-prefetching[]"
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--skip-update[Skip updating dependencies from their remote during a resolution]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--disable-sandbox[Disable using the sandbox when executing subprocesses]"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--disable-package-manifest-caching[Disable caching Package.swift manifests]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--version[]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--destination[]: :_files"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "(--verbose -v)"{--verbose,-v}"[Increase verbosity of informational output]"
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--no-static-swift-stdlib[Do not link Swift stdlib statically \[default\]]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--static-swift-stdlib[Link Swift stdlib statically]"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--enable-llbuild-library[Enable building with the llbuild library]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--force-resolved-versions[]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--disable-automatic-resolution[Disable automatic resolution if Package.resolved file is out-of-date]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--enable-index-store[Enable indexing-while-building feature]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--disable-index-store[Disable indexing-while-building feature]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--enable-pubgrub-resolver[\[Experimental\] Enable the new Pubgrub dependency resolver]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--enable-parseable-module-interfaces[]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--skip-build[Skip building the test target]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "(--list-tests -l)"{--list-tests,-l}"[Lists test methods in specifier format]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--generate-linuxmain[Generate LinuxMain.swift entries for the package]"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        "--parallel[Run the tests in parallel.]"
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--num-workers[Number of tests to execute in parallel.]:Number of tests to execute in parallel.: "
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "(--specifier -s)"{--specifier,-s}"[]: : "
							 
						 
					
						
							
								
									
										
										
										
											2018-10-07 22:33:29 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--xunit-output[]: :_files"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        "--filter[Run test cases matching regular expression, Format: <test-target>.<test-case> or <test-target>.<test-case>/<test>]:Run test cases matching regular expression, Format: <test-target>.<test-case> or <test-target>.<test-case>/<test>: "
							 
						 
					
						
							
								
									
										
										
										
											2019-04-07 23:26:43 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        "--enable-code-coverage[Test with code coverage enabled]"
							 
						 
					
						
							
								
									
										
										
										
											2018-08-10 02:10:32 +09:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    _arguments $arguments && return
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift_compiler() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								_swift