Skip to content

refactor: trim non-core features and add subpath support#71

Merged
raiderrobert merged 2 commits into
mainfrom
refactor/trim-and-refactor
Feb 15, 2026
Merged

refactor: trim non-core features and add subpath support#71
raiderrobert merged 2 commits into
mainfrom
refactor/trim-and-refactor

Conversation

@raiderrobert

Copy link
Copy Markdown
Owner

Summary

  • Remove check and ready CLI commands
  • Remove examples/ directory (templates will live in diecut-templates repo)
  • Remove unused dependencies (rhai, similar) and dead code
  • Remove obsolete CI jobs (example smoke tests, external template compat)
  • Fix HookError diagnostic help text (was referencing Rhai, now references shell)
  • Add subpath support to TemplateSource::Git for multi-template repos (e.g. diecut new gh:user/diecut-templates/python-pkg)

Test plan

  • cargo fmt --check passes
  • cargo clippy -- -D warnings passes
  • 76 unit + 19 integration tests pass
  • 7 new tests for subpath parsing (split_repo_subpath, resolve with subpath, user abbreviation with subpath)
  • Manual validation: diecut new <local-template> and diecut list work

- Remove `diecut check` and `diecut ready` commands (src/check.rs,
  src/ready.rs, commands/check.rs, commands/ready.rs)
- Remove examples/ directory (templates will live in diecut-templates repo)
- Remove unused dependencies: rhai, similar
- Remove CI examples smoke test job and external-templates workflow
- Fix HookError diagnostic help text (was referencing Rhai)
Parse subpath from abbreviations like gh:user/repo/template-name,
where segments after user/repo become the subpath within the cloned
repo. Applies subpath to template_dir before resolution.

This enables repos like diecut-templates to hold multiple templates
in subdirectories, used as: diecut new gh:user/diecut-templates/python-pkg
@raiderrobert raiderrobert merged commit 3137e5a into main Feb 15, 2026
4 checks passed
@raiderrobert raiderrobert deleted the refactor/trim-and-refactor branch February 15, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant