Skip to content

Commit ea7a639

Browse files
authored
Merge pull request #19 from uhooi/feature/bump_swift_argument_parser_to_1.1.3
Bump Swift Argument Parser from 1.0.1 to 1.1.3
2 parents 63c8dc9 + 86e27d4 commit ea7a639

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Package.resolved

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"kind" : "remoteSourceControl",
66
"location" : "https://github.com/apple/swift-argument-parser",
77
"state" : {
8-
"revision" : "d2930e8fcf9c33162b9fcc1d522bc975e2d4179b",
9-
"version" : "1.0.1"
8+
"revision" : "df9ee6676cd5b3bf5b330ec7568a5644f547201b",
9+
"version" : "1.1.3"
1010
}
1111
}
1212
],

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let package = Package(
1111
.executable(name: "uhooi", targets: ["OutputUhooi"]),
1212
],
1313
dependencies: [
14-
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"),
14+
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.1.0"),
1515
],
1616
targets: [
1717
.executableTarget(

Sources/OutputUhooi/Uhooi.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import ArgumentParser
22
import OutputUhooiCore
33

44
@main
5-
struct Uhooi: ParsableCommand {
5+
struct Uhooi: AsyncParsableCommand {
66

77
static var configuration = CommandConfiguration(
88
abstract: "Uhooi speak the phrase.",
@@ -18,7 +18,7 @@ struct Uhooi: ParsableCommand {
1818
@Argument(help: "The phrase to repeat.")
1919
var phrase: String
2020

21-
mutating func run() throws {
21+
mutating func run() async throws {
2222
print(TextBuilder.buildText(phrase: phrase, count: count, includeCounter: includeCounter))
2323
}
2424
}

Sources/OutputUhooiCore/TextBuilder.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
final public class TextBuilder {
1+
public enum TextBuilder {
22
public static func buildText(phrase: String, count: Int?, includeCounter: Bool) -> String {
33
let repeatCount = count ?? 1
44
guard repeatCount >= 1 else {

0 commit comments

Comments
 (0)