Skip to content

Commit 628fdbb

Browse files
authored
Add more meaningful intro when no parameters given; Update SwiftArgumentParser (#71)
1 parent 1800fa9 commit 628fdbb

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let package = Package(
1515
targets: ["KituraCommandCore"]),
1616
],
1717
dependencies: [
18-
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(from: "0.3.2")),
18+
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(from: "0.4.0")),
1919
.package(url: "https://github.com/kareman/SwiftShell", from: "5.1.0"),
2020
.package(url: "https://github.com/onevcat/Rainbow", .upToNextMinor(from: "3.2.0"))
2121
],

Sources/kitura/main.swift

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,21 @@ struct KituraCommand: ParsableCommand {
5454
}
5555

5656
mutating func run() throws {
57-
print("main run".lightYellow)
58-
57+
print("""
58+
To get started, try:
59+
60+
kitura init MyProject
61+
62+
For help:
63+
64+
kitura --help
65+
66+
"""
67+
68+
)
69+
// print("kitura --help ")
70+
// print("main run".lightYellow)
71+
//
5972
}
6073
}
6174

0 commit comments

Comments
 (0)