mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
devvm layer new NAME writes ~/.config/devvm/layers/NAME.sh, a starter script, and NAME.policy next to it unless that exists. Names that aren't layer-like are layer_name_invalid; base and the shared tools' layer_name_reserved; an existing script layer_exists. The script is linked into place whole, never over one that appeared. - internal/build/layer.go: NewLayer, its templates, createNew - internal/cli/layer.go: devvm layer (help alone), devvm layer new NAME - messages: layer_name_invalid, layer_name_reserved, layer_exists, layer_created, layer_new_failed; doc links to customizing - testdata/script/layer.txtar: from images.bats' layer new case - e2e images: the fixture layer starts from devvm layer new - docs: customizing.md gets your own layers (with the postgres example); commands.md, images.md, the index; CLI reference Co-Authored-By: Claude Opus 5.5 <[email protected]>