Skip to content

Commit

Permalink
Added better version output, and --about command.
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Aug 8, 2022
1 parent 2b33fcb commit 56068d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
],

dependencies: [
.package(url: "https://github.com/elegantchaos/CommandShell.git", from: "2.1.4"),
.package(url: "https://github.com/elegantchaos/CommandShell.git", from: "2.1.5"),
.package(url: "https://github.com/elegantchaos/Expressions.git", from: "1.1.1"),
.package(url: "https://github.com/elegantchaos/Files.git", from: "1.2.2"),
.package(url: "https://github.com/elegantchaos/Logger.git", from: "1.8.0"),
Expand Down
5 changes: 3 additions & 2 deletions Sources/XPkgCommand/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ import SemanticVersion

var info: [String:Any] = [:]

let year = DateFormatter.localizedString(from: Date(), dateStyle: .long, timeStyle: .none)
info[.versionInfoKey] = CurrentVersion.string
info[.buildInfoKey] = CurrentVersion.build
info[.copyrightInfoKey] = "Copyright © \(year) Elegant Chaos. All rights reserved."

let components = Calendar.current.dateComponents([.year], from: Date())
info[.copyrightInfoKey] = "Copyright © \(components.year!) Elegant Chaos. All rights reserved."

CommandShell<Engine>.main(info: info)

0 comments on commit 56068d1

Please sign in to comment.