Repository navigation
Closed
Labels
Description
Tracking: #625
Context
Users curl-install/init a repo from this template. They should be able to choose how the
development environment is delivered: a devcontainer, a direnv (flake) setup, or both. Simple
repos want just direnv; orchestrated repos want the container; some want both.
Scope
In:
- Add an interactive (and
--mode=devcontainer|direnv|bothnon-interactive) selection to the
install/init script:- devcontainer → scaffold
.devcontainer/(existing template), no flake stub required; - direnv → scaffold
flake.nix+.envrc(the T4.2 — Downstream pattern: minimal flake stub (non-overwriting) +nix2containerproduction builder #640 minimal stub), no.devcontainer/; - both → scaffold all of the above.
- devcontainer → scaffold
- Document the default + prompt copy in
README.md/CONTRIBUTE.md.
Out:
- The stub contents themselves (T4.2 — Downstream pattern: minimal flake stub (non-overwriting) +
nix2containerproduction builder #640).
Tasks
- Add interactive mode selection to the install/init script
- Add a
--mode=devcontainer|direnv|bothnon-interactive flag - Wire each mode to scaffold exactly the right file set
- Document default + prompt copy
Acceptance criteria
- Each mode scaffolds exactly the right files and nothing else.
- The non-interactive flag works in CI.
Dependencies
- Depends-on: T4.2 — Downstream pattern: minimal flake stub (non-overwriting) +
nix2containerproduction builder #640. - Blocks: none.
Files
assets/init-workspace.shscripts/init.sh- the
curlentrypoint - docs
Test notes
- Extend
init-workspace.batswith one case per mode (devcontainer / direnv / both).
Related issues
- [FEATURE] Improve workspace init: global just command and better non-empty error output #66 (improve workspace init: global
justcommand, better non-empty error output) —
same install/init entrypoint; land the mode picker and its UX improvements together. - [FEATURE] Expand justfile.base with devcontainer, quality, security, docs, info, and git recipes #71 (expand
justfile.baserecipes) — the scaffolded modes should expose a consistent
recipe set; coordinate so direnv-only repos still get the relevant recipes.
Activity
feat(scripts): add the install/init delivery-mode picker
fix(scripts): default the install mode to both without a TTY
test(scripts): answer the delivery-mode prompt in the interactive ini…
feat(nix): downstream flake stub (non-overwriting) + nix2container pa…
feat(scripts): install/init delivery-mode picker — devcontainer|diren…
fix(scripts): Nix image scaffolds real writable files, not store syml…
fix(init): make scaffolded .devcontainer justfile imports optional
refactor(init): allow TEMPLATE_DIR/WORKSPACE_DIR override
test(init): scaffold the --mode picker end-to-end
test(init): expect optional .devcontainer justfile import
c-vigo commentedon Jul 2, 2026
Done via PR #663 (landed on
devthrough the #625 epic PR #670). Bothinstall.shandassets/init-workspace.shsupport--mode devcontainer|direnv|both(interactive prompt when unset, defaultboth), and each mode prunes to exactly the right file set after scaffold.chore: release 0.4.0 (#195)
chore: release 0.4.0 (#813)
test: share scaffold fixtures and consolidate nix invocations (#1420)