mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
Publish pkldoc as a standalone CLI #102
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?
Originally created by @StefMa on GitHub (Mar 3, 2024).
Seems like an known issue but not tracked as an issue yet 🙃
@odenix commented on GitHub (Mar 5, 2024):
The same problem exists for Java and Kotlin code generation. Gradle users can use the Gradle plugin.
@StefMa commented on GitHub (Mar 20, 2024):
If I see it correctly, a module for doc gen already exist. The pkl-doc module.
I thought we can simply use this in the pkl-cli module 🤔 can we?
While checking this, I stumbled over the differences how the Gradle plugin declares dependencies compared to how the cli declare dependencies.
While the Gradle plugin uses the pkl-tools fatJar, the cli declares all its dependencies "normally".
I don't know what the rationale behind this is, but I ask myself if the cli should also declare a dependency like the Gradle plugin or vice versa or... Keep everything like it is?Maybe someone can explain this?! 🙃
nvmd. The cli can't depend on tools as tools depends on cli...
@bioball commented on GitHub (Mar 20, 2024):
If we support this, we'd probably publish these as standalone tools. For now, you can use
pkl-toolsas the "standalone CLI" (see comment here: https://github.com/apple/pkl/discussions/272#discussioncomment-8636479).@odenix commented on GitHub (Mar 20, 2024):
I think the goal should be for tools to communicate with Pkl over the binary protocol. Then each tool can have its own, small native executable.