Skip to content

Commit

Permalink
Update SwiftCLI (#667)
Browse files Browse the repository at this point in the history
Update SwiftCLI
  • Loading branch information
yonaskolb committed Oct 6, 2019
2 parents af7fcc1 + 047856a commit 8c2700a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 25 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
- Fixed macOS unit test setting preset [#665](https://github.com/yonaskolb/XcodeGen/pull/665) @yonaskolb
- Add `rcproject` files to sources build phase instead of resources [#669](https://github.com/yonaskolb/XcodeGen/pull/669) @Qusic

#### Internal

- Updated to SwiftCLI 5.3.2 [#667](https://github.com/yonaskolb/XcodeGen/pull/667) @giginet

## 2.8.0

#### Added
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"repositoryURL": "https://github.com/jakeheis/SwiftCLI.git",
"state": {
"branch": null,
"revision": "5318c37d3cacc8780f50b87a8840a6774320ebdf",
"version": "5.2.2"
"revision": "ba2268e67c07b9f9cfbc0801385e6238b36255eb",
"version": "5.3.2"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let package = Package(
.package(url: "https://github.com/kylef/Spectre.git", from: "0.9.0"),
.package(url: "https://github.com/onevcat/Rainbow.git", from: "3.0.0"),
.package(url: "https://github.com/tuist/xcodeproj.git", .exact("7.1.0")),
.package(url: "https://github.com/jakeheis/SwiftCLI.git", .exact("5.2.2")),
.package(url: "https://github.com/jakeheis/SwiftCLI.git", .upToNextMinor(from: "5.3.2")),
],
targets: [
.target(name: "XcodeGen", dependencies: [
Expand Down
20 changes: 0 additions & 20 deletions Sources/XcodeGenCLI/CommandRouter.swift

This file was deleted.

3 changes: 1 addition & 2 deletions Sources/XcodeGenCLI/XcodeGenCLI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import ProjectSpec
import SwiftCLI

public class XcodeGenCLI {

let cli: CLI

public init(version: Version) {
Expand All @@ -15,7 +14,7 @@ public class XcodeGenCLI {
description: "Generates Xcode projects",
commands: [generateCommand]
)
cli.parser = Parser(router: CommandRouter(defaultCommand: generateCommand))
cli.parser.routeBehavior = .searchWithFallback(generateCommand)
}

public func execute(arguments: [String]? = nil) {
Expand Down

0 comments on commit 8c2700a

Please sign in to comment.