Skip to content

Commit

Permalink
Merge pull request #1390 from Carthage/build-platform-macos
Browse files Browse the repository at this point in the history
[carthage] Accept `macOS` for `--platform` option
  • Loading branch information
mdiep committed Jul 18, 2016
2 parents 17dbf5f + 96e290f commit d4216b4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Source/Scripts/carthage-bash-completion
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ _carthage() {
return 0
;;
--platform)
COMPREPLY=($(compgen -W 'all iOS Mac watchOS tvOS' -- ${cur}))
COMPREPLY=($(compgen -W 'all macOS iOS watchOS tvOS' -- ${cur}))
return 0
;;
--derived-data)
Expand Down
6 changes: 3 additions & 3 deletions Source/Scripts/carthage-fish-completion
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ complete -c carthage -n '__fish_prog_using_subcommand archive' -l output -r
complete -c carthage -n '__fish_prog_using_subcommand archive' -l color -a "auto always never" -x

complete -c carthage -n '__fish_prog_using_subcommand bootstrap' -l configuration -x -a "Release Debug"
complete -c carthage -n '__fish_prog_using_subcommand bootstrap' -l platform -x -a "all Mac OSX iOS watchOS tvOS"
complete -c carthage -n '__fish_prog_using_subcommand bootstrap' -l platform -x -a "all macOS iOS watchOS tvOS"
complete -c carthage -n '__fish_prog_using_subcommand bootstrap' -l verbose
complete -c carthage -n '__fish_prog_using_subcommand bootstrap' -l no-checkout
complete -c carthage -n '__fish_prog_using_subcommand bootstrap' -l no-build
Expand All @@ -34,7 +34,7 @@ complete -c carthage -n '__fish_prog_using_subcommand bootstrap' -l project-dire
complete -c carthage -n '__fish_prog_using_subcommand bootstrap' -l derived-data -x -a '(__fish_complete_directories (commandline -ct))'

complete -c carthage -n '__fish_prog_using_subcommand build' -l configuration -x -a "Release Debug"
complete -c carthage -n '__fish_prog_using_subcommand build' -l platform -x -a "all Mac OSX iOS watchOS tvOS"
complete -c carthage -n '__fish_prog_using_subcommand build' -l platform -x -a "all macOS iOS watchOS tvOS"
complete -c carthage -n '__fish_prog_using_subcommand build' -l no-skip-current
complete -c carthage -n '__fish_prog_using_subcommand build' -l color -a "auto always never" -x
complete -c carthage -n '__fish_prog_using_subcommand build' -l verbose
Expand All @@ -52,7 +52,7 @@ complete -c carthage -n '__fish_prog_using_subcommand fetch' -l color -a "auto a
complete -c carthage -n '__fish_prog_using_subcommand help' -a "archive bootstrap build checkout copy-frameworks fetch help update version" -f

complete -c carthage -n '__fish_prog_using_subcommand update' -l configuration -x -a "Release Debug"
complete -c carthage -n '__fish_prog_using_subcommand update' -l platform -x -a "all Mac OSX iOS watchOS tvOS"
complete -c carthage -n '__fish_prog_using_subcommand update' -l platform -x -a "all macOS iOS watchOS tvOS"
complete -c carthage -n '__fish_prog_using_subcommand update' -l verbose
complete -c carthage -n '__fish_prog_using_subcommand update' -l no-checkout
complete -c carthage -n '__fish_prog_using_subcommand update' -l no-build
Expand Down
4 changes: 2 additions & 2 deletions Source/Scripts/carthage-zsh-completion
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ _carthage() {
(bootstrap|update)
_arguments -C \
'--configuration: :(Release Debug)' \
'--platform: :(all iOS Mac watchOS tvOS)' \
'--platform: :(all macOS iOS watchOS tvOS)' \
'--use-ssh' \
'--use-submodules' \
'--no-use-binaries' \
Expand All @@ -62,7 +62,7 @@ _carthage() {
(build)
_arguments \
'--configuration: :(Release Debug)' \
'--platform: :(all iOS Mac watchOS tvOS)' \
'--platform: :(all macOS iOS watchOS tvOS)' \
'--no-skip-current' \
'--color: :(auto always never)' \
'--verbose' \
Expand Down
2 changes: 1 addition & 1 deletion Source/carthage/Build.swift
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ extension BuildPlatform: ArgumentType {
public static let name = "platform"

private static let acceptedStrings: [String: BuildPlatform] = [
"Mac": .Mac, "OSX": .Mac, "macosx": .Mac,
"macOS": .Mac, "Mac": .Mac, "OSX": .Mac, "macosx": .Mac,
"iOS": .iOS, "iphoneos": .iOS, "iphonesimulator": .iOS,
"watchOS": .watchOS, "watchsimulator": .watchOS,
"tvOS": .tvOS, "tvsimulator": .tvOS,
Expand Down

0 comments on commit d4216b4

Please sign in to comment.