Skip to content

Commit 2e32ee2

Browse files
authored
Merge pull request #9 from enuance/CPFeature-007-UpdatedPackages
CPFeature-007 Updated the Consler Package
2 parents ac9dd23 + cd8fbe4 commit 2e32ee2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let package = Package(
1111
// 🧰 SPMUtilities for CLI Argument Parsing.
1212
.package(url: "https://github.com/apple/swift-package-manager", from: "0.5.0"),
1313
// Consler for Styled outputs to the Console
14-
.package(url: "https://github.com/enuance/consler", from: "0.2.0")
14+
.package(url: "https://github.com/enuance/consler", from: "0.4.0")
1515
],
1616
targets: [
1717
.target(

Sources/CommitPrefix/CPFileHandler.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ struct CPFileHandler {
4949
let cpState = try cpInteractor.getCommitPrefixState()
5050
switch cpState.mode {
5151
case .normal:
52-
return ConslerOutput(values: [
52+
return ConslerOutput(
5353
"CommitPrefix ", "MODE NORMAL",
54-
"- prefixes: ", cpState.normalPrefixes.joined()])
54+
"- prefixes: ", cpState.normalPrefixes.joined())
5555
.describedBy(.normal, .cyanEndsLine, .normal, .cyan)
5656
case .branchParse:
57-
return ConslerOutput(values: [
57+
return ConslerOutput(
5858
"CommitPrefix ", "MODE BRANCH_PARSE",
5959
"- branch prefixes: ", cpState.branchPrefixes.joined(),
60-
"- stored prefixes: ", cpState.normalPrefixes.joined()])
60+
"- stored prefixes: ", cpState.normalPrefixes.joined())
6161
.describedBy(.normal, .cyanEndsLine, .normal, .cyanEndsLine, .normal, .cyan)
6262
}
6363
}

0 commit comments

Comments
 (0)