Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Commit 71c79f0

Browse files
committed
Prepare for release 2.2.1.
1 parent 43c750c commit 71c79f0

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
2.2.1
5+
-----
6+
7+
_2023-08-24_
8+
9+
- Fix `ShellSentry.create(argv)` putting the `--parse-only` flag in the wrong place.
10+
411
2.2.0
512
-----
613

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ POM_NAME=Kotlin CLI Util
1313
POM_ARTIFACT_ID=kotlin-cli-util
1414
POM_PACKAGING=jar
1515
GROUP=com.slack.cli
16-
VERSION_NAME=2.3.0-SNAPSHOT
16+
VERSION_NAME=2.2.1
1717
POM_DESCRIPTION=Kotlin CLI utilities, mostly intended for use with Clikt.
1818
POM_URL=https://github.com/slackhq/kotlin-cli-util/
1919
POM_SCM_URL=https://github.com/slackhq/kotlin-cli-util/

src/main/kotlin/slack/cli/shellsentry/ShellSentry.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public data class ShellSentry(
136136
public companion object {
137137
/** Creates a new instance with the given [argv] command line args as input. */
138138
public fun create(argv: Array<String>, echo: (String) -> Unit): ShellSentry {
139-
val cli = ShellSentryCli().apply { main(argv + "--parse-only") }
139+
val cli = ShellSentryCli().apply { main(listOf("--parse-only") + argv) }
140140
return create(cli, echo)
141141
}
142142

0 commit comments

Comments
 (0)