Skip to content

Add versioned templates to stack init - #15

Merged
konojunya merged 1 commit into
mainfrom
jj/add-stack-init
Sep 4, 2026
Merged

Add versioned templates to stack init#15
konojunya merged 1 commit into
mainfrom
jj/add-stack-init

Conversation

@konojunya

Copy link
Copy Markdown
Member

Summary

  • add a non-interactive stack init command with a safe hello-stack default, nine curated template IDs, explicit output selection, and opt-in atomic replacement through --force
  • embed the catalog and exact source bytes from the pinned public Stack specification corpus, with CI drift checks and provider-pack guidance for branded templates
  • verify every template through end-to-end initialization, stack check, and stack render, including existing-file protection and temporary-directory integration

Compatibility

  • no language, engine, or file-format contract changes
  • existing commands and exit status behavior remain unchanged
  • initialization writes only the requested output path and never overwrites without --force

Validation

  • cargo fmt --check
  • cargo test --all-features --locked
  • cargo +1.85.0 test --locked
  • cargo clippy --all-targets --all-features --locked -- -D warnings
  • cargo +1.85.0 clippy --all-targets --all-features --locked -- -D warnings
  • RUSTDOCFLAGS=-D warnings cargo doc --no-deps --locked
  • cargo llvm-cov --all-features --locked --fail-under-lines 90 --fail-under-functions 95 --fail-under-regions 90
  • cargo build --release --locked
  • python3 scripts/validate-render.py
  • node scripts/validate-provider-catalogs.mjs
  • pinned template snapshot and conformance validation against stack-sh/specification@8e5477c

@konojunya
konojunya merged commit 41f2946 into main Sep 4, 2026
2 checks passed
@konojunya
konojunya deleted the jj/add-stack-init branch September 4, 2026 21:20
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