Skip to content

refactor: strip non-core features and trim to new + list#69

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

refactor: strip non-core features and trim to new + list#69
raiderrobert merged 3 commits into
mainfrom
refactor/trim-and-refactor

Conversation

@raiderrobert

@raiderrobert raiderrobert commented Feb 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove cookiecutter adapter, migration command, and format detection — diecut is native-only now
  • Remove update/merge system (three-way merge, diecut update command)
  • Replace Rhai scripting hooks with simple shell command runner (post_create: "git init" in diecut.toml)
  • Simplify ResolvedTemplate — removed format, render_all, context_namespace fields
  • Remove associated error variants, test fixtures, and integration tests

This is Phase 1 (steps a-c) of the trim-and-refactor plan. Remaining steps (remove check/ready commands, examples dir, cleanup unused deps, and Phase 2 subpath refactor) will follow.

What's left after this PR

  • CLI still has check and ready commands (removal is next)
  • rhai, similar, regex-lite, serde_json deps still in Cargo.toml (cleanup is next)
  • examples/ directory still exists (removal is next)

Stats

  • -2,736 lines removed across 32 files
  • 69 unit tests + 19 integration tests passing
  • cargo clippy -- -D warnings clean (1 dead code warning for toml_value_to_tera, will be addressed in cleanup step)

Test plan

  • cargo build passes
  • cargo test — 69 unit + 19 integration tests pass
  • cargo clippy -- -D warnings — clean (pending dead code cleanup)
  • Manual: diecut new <local-template> still works
  • Manual: diecut list still works

Remove cookiecutter adapter, migration system, three-way merge/update
command, Rhai scripting hooks, and associated tests/fixtures. Simplify
ResolvedTemplate to native-only fields. Replace Rhai hooks with a
simple shell command runner (post_create). CLI retains new, list,
check, and ready commands (check/ready removal is next step).

-2,736 lines removed across 32 files.
@raiderrobert raiderrobert changed the title refactor: strip non-core features and trim to new + list feat: strip non-core features and trim to new + list Feb 15, 2026
@raiderrobert raiderrobert changed the title feat: strip non-core features and trim to new + list refactor: strip non-core features and trim to new + list Feb 15, 2026
Clippy with -D warnings fails on this unused function left over from
the cookiecutter removal in the prior commit.
@raiderrobert raiderrobert merged commit 3c869d9 into main Feb 15, 2026
1 check passed
@raiderrobert raiderrobert deleted the refactor/trim-and-refactor branch February 15, 2026 19:14
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