FEAT: Add 'templates' command to list bundled templates#13
FEAT: Add 'templates' command to list bundled templates#13CaptainLevi25 wants to merge 4 commits into
Conversation
|
Hi @renezander030 . The issue with linting was when I ran the format almost all files were modified even though I touched only index. Js and test/showTemplates.js In git status after running the lint more than 10 files modified message were showing. That's why I gave the PR without linting. Any solution for this? Thanks. |
|
Thanks @CaptainLevi25 — and good instinct holding the lint reformat back. You diagnosed it exactly right: That one's on me — I'll clear the lint debt on Your actual change is clean: tests pass on Node 18/20/22 and
Fix the README label, and once I've cleared master + you rebase, I'll merge. Thanks for the clean work! |
|
Correction to my last comment, @CaptainLevi25 — I dug into the CI log properly and I had it wrong. The pre-existing The one thing actually failing CI is a single error in your -import { existsSync, readFileSync, writeFileSync, readdirSync } from "node:fs";
+import { existsSync, readdirSync, readFileSync, writeFileSync } from "node:fs";Or let Biome do exactly that one fix without touching anything else: npx biome check --write --only=assist/source/organizeImports src/index.tsThat's the whole blocker — after it, So: that one import reorder + the README link-label fix from above, and you're good to merge. Sorry for the misdirection! |
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Rebased, fixed the import order + README label, and merged — thanks @CaptainLevi25! 🙌 |
Summary
Adds a new
templatescommand to make bundled templates discoverable from the CLI.Previously, users could apply bundled templates via apply-template, but there was no way to list the available templates without inspecting the repository contents. This change introduces a dedicated command that enumerates bundled templates from the shipped templates/ directory.
Usage
capcut templatesorcapcut templates -HResolves
Resolves #11
Changes
Screenshots
capcut templatesorcapcut templates -Hnpm run testcapcut --helpPlease review the PR at your convenience and suggest improvements required. I will try my best to resolve it.
Thanks a lot!