Skip to content

Commit

Permalink
Add more meaningful intro when no parameters given; Update SwiftArgum…
Browse files Browse the repository at this point in the history
…entParser (#71)
  • Loading branch information
dannys42 authored Mar 7, 2021
1 parent 1800fa9 commit 628fdbb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let package = Package(
targets: ["KituraCommandCore"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(from: "0.3.2")),
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(from: "0.4.0")),
.package(url: "https://github.com/kareman/SwiftShell", from: "5.1.0"),
.package(url: "https://github.com/onevcat/Rainbow", .upToNextMinor(from: "3.2.0"))
],
Expand Down
17 changes: 15 additions & 2 deletions Sources/kitura/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,21 @@ struct KituraCommand: ParsableCommand {
}

mutating func run() throws {
print("main run".lightYellow)

print("""
To get started, try:
kitura init MyProject
For help:
kitura --help
"""

)
// print("kitura --help ")
// print("main run".lightYellow)
//
}
}

Expand Down

0 comments on commit 628fdbb

Please # to comment.