Original PR: https://github.com/apple/pkl/pull/947 Author: @gordonbondon Created: 2/12/2025 Status: ✅ Merged Merged: 2/20/2025 Merged by: @bioball
Base: main ← Head: clickt-bump
main
clickt-bump
1873d9d
ebcaf8d
bb911b4
f4335e1
5536925
045c2a6
1bef03b
b1e7bc8
dd88633
405a290
46 files changed (+463 additions, -228 deletions)
📝 bench/gradle.lockfile (+1 -1) 📝 buildSrc/src/main/kotlin/pklAllProjects.gradle.kts (+9 -0) 📝 buildSrc/src/main/kotlin/pklFatJar.gradle.kts (+3 -0) 📝 docs/gradle.lockfile (+1 -2) 📝 gradle/libs.versions.toml (+3 -2) 📝 pkl-cli/gradle.lockfile (+24 -4) 📝 pkl-cli/pkl-cli.gradle.kts (+1 -5) 📝 pkl-cli/src/main/kotlin/org/pkl/cli/CliTestRunner.kt (+2 -2) 📝 pkl-cli/src/main/kotlin/org/pkl/cli/Main.kt (+1 -0) 📝 pkl-cli/src/main/kotlin/org/pkl/cli/commands/AnalyzeCommand.kt (+9 -13) 📝 pkl-cli/src/main/kotlin/org/pkl/cli/commands/DownloadPackageCommand.kt (+17 -19) 📝 pkl-cli/src/main/kotlin/org/pkl/cli/commands/EvalCommand.kt (+8 -6) 📝 pkl-cli/src/main/kotlin/org/pkl/cli/commands/ProjectCommand.kt (+54 -60) 📝 pkl-cli/src/main/kotlin/org/pkl/cli/commands/ReplCommand.kt (+3 -1) 📝 pkl-cli/src/main/kotlin/org/pkl/cli/commands/RootCommand.kt (+10 -10) 📝 pkl-cli/src/main/kotlin/org/pkl/cli/commands/ServerCommand.kt (+6 -6) 📝 pkl-cli/src/main/kotlin/org/pkl/cli/commands/TestCommand.kt (+4 -3) 📝 pkl-cli/src/test/kotlin/org/pkl/cli/CliMainTest.kt (+9 -5) 📝 pkl-cli/src/test/kotlin/org/pkl/cli/CliTestRunnerTest.kt (+4 -4) 📝 pkl-codegen-java/gradle.lockfile (+24 -4)
bench/gradle.lockfile
buildSrc/src/main/kotlin/pklAllProjects.gradle.kts
buildSrc/src/main/kotlin/pklFatJar.gradle.kts
docs/gradle.lockfile
gradle/libs.versions.toml
pkl-cli/gradle.lockfile
pkl-cli/pkl-cli.gradle.kts
pkl-cli/src/main/kotlin/org/pkl/cli/CliTestRunner.kt
pkl-cli/src/main/kotlin/org/pkl/cli/Main.kt
pkl-cli/src/main/kotlin/org/pkl/cli/commands/AnalyzeCommand.kt
pkl-cli/src/main/kotlin/org/pkl/cli/commands/DownloadPackageCommand.kt
pkl-cli/src/main/kotlin/org/pkl/cli/commands/EvalCommand.kt
pkl-cli/src/main/kotlin/org/pkl/cli/commands/ProjectCommand.kt
pkl-cli/src/main/kotlin/org/pkl/cli/commands/ReplCommand.kt
pkl-cli/src/main/kotlin/org/pkl/cli/commands/RootCommand.kt
pkl-cli/src/main/kotlin/org/pkl/cli/commands/ServerCommand.kt
pkl-cli/src/main/kotlin/org/pkl/cli/commands/TestCommand.kt
pkl-cli/src/test/kotlin/org/pkl/cli/CliMainTest.kt
pkl-cli/src/test/kotlin/org/pkl/cli/CliTestRunnerTest.kt
pkl-codegen-java/gradle.lockfile
...and 26 more files
Previously bash completion generated by pkl was causing errors like:
bash
pkl
-bash: /opt/homebrew/etc/bash_completion.d/pkl: line 347: syntax error near unexpected token `<' -bash: /opt/homebrew/etc/bash_completion.d/pkl: line 347: ` <modules>)'
This was due to clikt bug https://github.com/ajalt/clikt/issues/563 and was fixed in clikt 5.0.3
This PR:
<..>
Bonus: This comes with added colours and "markdown" support inside help: Before:
After:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/947
Author: @gordonbondon
Created: 2/12/2025
Status: ✅ Merged
Merged: 2/20/2025
Merged by: @bioball
Base:
main← Head:clickt-bump📝 Commits (10+)
1873d9dBump clikt to 5.0.3ebcaf8dMigrate code to clikt 5.0bb911b4Remove unneeded greater and less sign in metavarsf4335e1Bump5536925rebase045c2a6Update lockfile1bef03breview suggestionsb1e7bc8Switch to extensionsdd88633Update doc links for other clis405a290format📊 Changes
46 files changed (+463 additions, -228 deletions)
View changed files
📝
bench/gradle.lockfile(+1 -1)📝
buildSrc/src/main/kotlin/pklAllProjects.gradle.kts(+9 -0)📝
buildSrc/src/main/kotlin/pklFatJar.gradle.kts(+3 -0)📝
docs/gradle.lockfile(+1 -2)📝
gradle/libs.versions.toml(+3 -2)📝
pkl-cli/gradle.lockfile(+24 -4)📝
pkl-cli/pkl-cli.gradle.kts(+1 -5)📝
pkl-cli/src/main/kotlin/org/pkl/cli/CliTestRunner.kt(+2 -2)📝
pkl-cli/src/main/kotlin/org/pkl/cli/Main.kt(+1 -0)📝
pkl-cli/src/main/kotlin/org/pkl/cli/commands/AnalyzeCommand.kt(+9 -13)📝
pkl-cli/src/main/kotlin/org/pkl/cli/commands/DownloadPackageCommand.kt(+17 -19)📝
pkl-cli/src/main/kotlin/org/pkl/cli/commands/EvalCommand.kt(+8 -6)📝
pkl-cli/src/main/kotlin/org/pkl/cli/commands/ProjectCommand.kt(+54 -60)📝
pkl-cli/src/main/kotlin/org/pkl/cli/commands/ReplCommand.kt(+3 -1)📝
pkl-cli/src/main/kotlin/org/pkl/cli/commands/RootCommand.kt(+10 -10)📝
pkl-cli/src/main/kotlin/org/pkl/cli/commands/ServerCommand.kt(+6 -6)📝
pkl-cli/src/main/kotlin/org/pkl/cli/commands/TestCommand.kt(+4 -3)📝
pkl-cli/src/test/kotlin/org/pkl/cli/CliMainTest.kt(+9 -5)📝
pkl-cli/src/test/kotlin/org/pkl/cli/CliTestRunnerTest.kt(+4 -4)📝
pkl-codegen-java/gradle.lockfile(+24 -4)...and 26 more files
📄 Description
Previously
bashcompletion generated bypklwas causing errors like:This was due to clikt bug https://github.com/ajalt/clikt/issues/563 and was fixed in clikt 5.0.3
This PR:
<..>around metavars, as clikt now correctly generates them inside help output.Bonus: This comes with added colours and "markdown" support inside help:

Before:
After:

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.