mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
[PR #947] [MERGED] Bump clikt to 5.0.3 to fix bash autocompletion #821
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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.