Repository navigation
Add Zensical template, fix entangled new -l - #108
Merged
Merged
Conversation
`entangled new zensical <path>` uses gh:entangled/template-zensical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- TEMPLATE and PROJECT_PATH are optional for click, so `-l` works on its own; missing arguments give a click usage error. - Help printed for a HelpfulUserError is captured while the click context is active; the error is handled after the command returns, so printing help crashed with 'There is no active click context'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
entangled new zensical <path>creates a project from the new entangled/template-zensical template. It's a copier template using uv,entangled-cli[jupyter]and Zensical. Zensical has no plugins, so the template'sbuild.pyweaves the Markdown withentangled weavebefore rendering it: code block titles come from thetitlefilter, and REPL output (from Jupyter kernels) from thereplfilter.entangled new -l: it failed with "Missing argument 'TEMPLATE'" unless you also gave two placeholder arguments.TEMPLATEandPROJECT_PATHare now optional for click, and the command checks for them itself.-dvalue, missing template answers) crashed with "There is no active click context". The error is handled after the command returns, so the help text is now captured when the error is raised.Tests
entangled new -lwith no arguments lists every template.PROJECT_PATHgives a click usage error.entangled new,entangled new x, and an invalid-dvalue, which now prints the help followed by the error message.🤖 Generated with Claude Code