Skip to content

Commit

Permalink
PRD-000 Fix/Version array lookup bug (#6)
Browse files Browse the repository at this point in the history
* Fix user-agent header in API client

* Bump up version number to 0.1.3

* Bump to v0.1.4, fix array lookup bug
  • Loading branch information
rohanprabhu authored Sep 5, 2023
1 parent 5985168 commit 139d3b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ $ cmdk version

```shell
# For Linux
curl -L https://github.com/commandk-dev/cli/releases/download/v0.1.3/cmdk-cli-client-0.1.3-linux-x86_64.zip \
--output cmdk-cli-client-0.1.3-linux-x86_64.zip
curl -L https://github.com/commandk-dev/cli/releases/download/v0.1.4/cmdk-cli-client-0.1.4-linux-x86_64.zip \
--output cmdk-cli-client-0.1.4-linux-x86_64.zip
```

```shell
# For MacOS
curl -L https://github.com/commandk-dev/cli/releases/download/v0.1.3/cmdk-cli-client-0.1.3-osx-x86_64.zip \
--output cmdk-cli-client-0.1.3-osx-x86_64.zip
curl -L https://github.com/commandk-dev/cli/releases/download/v0.1.4/cmdk-cli-client-0.1.4-osx-x86_64.zip \
--output cmdk-cli-client-0.1.4-osx-x86_64.zip
```

2. After downloading the ZIP file, extract its contents using the following command (replace <file> with the actual downloaded file name), and install the binary:
Expand Down
2 changes: 1 addition & 1 deletion src/nativeMain/kotlin/dev/commandk/cli/commandk-cli.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ val subcommands = emptyList<CliktCommand>() +

@OptIn(ExperimentalForeignApi::class)
fun main(args: Array<String>) {
if (args[0] == "version") {
if (args.size > 1 && args[0] == "version") {
VersionCommand(Terminal())
.run()
} else {
Expand Down

0 comments on commit 139d3b8

Please sign in to comment.