Skip to content

feat(template): add dry-run install previews - #224

Merged
ralyodio merged 1 commit into
moshcoder:mainfrom
phucnguyen1707:feat/template-install-dry-run
Aug 3, 2026
Merged

feat(template): add dry-run install previews#224
ralyodio merged 1 commit into
moshcoder:mainfrom
phucnguyen1707:feat/template-install-dry-run

Conversation

@phucnguyen1707

Copy link
Copy Markdown
Contributor

Summary

Supersedes #209 after #205 changed the template safety code. This rebased version preserves #205's symlink and special-file protections.

  • add moshcode template install <source> --dry-run to preview every create and overwrite without changing the target
  • support --force --dry-run for a complete overwrite preview while preserving the existing conflict behavior
  • reject unknown options and missing --into values before fetching or writing anything
  • remove the complete temporary workspace after remote tarball installs and previews
  • document the option and add Bash, Zsh, Fish, and PowerShell completion

Tests

  • node --test --test-concurrency=1 test/templates.test.mjs test/completion.test.mjs test/completion-powershell.test.mjs — 36 passed, 3 platform-dependent skips
  • PowerShell 5.1 TabExpansion2 functional coverage verifies template install, --dry-run, and the templates --into alias
  • full corepack pnpm test — 707 passed and 193 skipped; the same 11 Windows environment failures were reproduced on clean upstream 053ec57, which passed 701 and skipped 193
  • npm pack --dry-run — passed

@ralyodio
ralyodio merged commit 93d4955 into moshcoder:main Aug 3, 2026
3 checks passed
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.

2 participants