Skip to content

Commit 67eca53

Browse files
committed
Add --version flag on CLI
1 parent 885c9fb commit 67eca53

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

CLI/Sources/Main.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import Foundation
66
struct Main: AsyncParsableCommand {
77
static var configuration = CommandConfiguration(
88
commandName: "flock",
9-
abstract: "Rapid file download using concurrent connections."
9+
abstract: "Rapid file download using concurrent connections.",
10+
version: Flock.version
1011
)
1112

1213
@Argument(help: "The URL to download.")

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The objective is to speed up downloads by maximizing core usage and download ban
1111
Flock can be included in your project via [Swift Package Manager](https://www.swift.org/package-manager). Add the following line to the dependencies in your `Package.swift` file:
1212

1313
```swift
14-
.package(url: "https://github.com/qasim/Flock", exact: "0.1.1"),
14+
.package(url: "https://github.com/qasim/Flock", exact: "0.2.0"),
1515
```
1616

1717
Then, include `Flock` as a dependency for the target which requires it:

Sources/Documentation.docc/Flock.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The objective is to speed up downloads by maximizing core usage and download ban
1313
Flock can be included in your project via [Swift Package Manager](https://www.swift.org/package-manager). Add the following line to the dependencies in your `Package.swift` file:
1414

1515
```swift
16-
.package(url: "https://github.com/qasim/Flock", exact: "0.1.0"),
16+
.package(url: "https://github.com/qasim/Flock", exact: "0.2.0"),
1717
```
1818

1919
Then, include `Flock` as a dependency for the target which requires it:

Sources/Version.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public let version = "0.2.0"

0 commit comments

Comments
 (0)