Skip to content

Commit

Permalink
xcodebuild: Fix code completion for Zsh 5.9 and xcodebuild 14.3.1 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatTheMav authored Oct 24, 2023
1 parent 240667a commit 63a65d4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/_xcodebuild
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ _actions() {

_arguments \
'(-n -dry-run)'{-n,-dry-run}'[Print but do not execute commands]' \
'*: :->actions' \
'-alltargets[Build all targets in the specified project]' \
'-arch[Architecture to build]:Architecture to build:->archs' \
'-archivePath[Archive Path]:Archive Path:_directories' \
Expand Down Expand Up @@ -83,12 +82,10 @@ _arguments \
'-usage[Display xcodebuild usage]' \
'-version[Prints Xcode version]' \
'-workspace[xcworkspace file]:xcworkspace:->workspaces' \
'-xcconfig[xcconfig file]:xcconfig:->xcconfigs'
'-xcconfig[xcconfig file]:xcconfig:->xcconfigs' \
'*:Build action:_actions'

case "$state" in
actions)
_actions
;;
archs)
archs=($(_archs))
if [[ $archs != "" ]]; then
Expand Down

0 comments on commit 63a65d4

Please sign in to comment.