mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
base runs its chosen features after layers/base.sh, in the order chosen: devvm's own (features/<name>.sh next to the binary) and the user's (~/.config/devvm/features/<name>.sh). The choice is in base-features and in base's key; until there's a file, every feature counts. The first build of anything asks which features base gets, every one chosen to start with: an arrow-key (or j/k) picker in a terminal, showing each script's second line; without a terminal, every feature. The choice is saved and printed. - build: Features (devvm's, sorted, then the user's; a user feature named like a built-in one is ignored), FeatureScript, chosenFeatures (selected_features), chooseFeatures (pick_features) run by Build and Rebuild before any key; Inputs hashes the chosen features and the user's folder; base's spec gets each feature's script, one without a script skipped with a warning. - image: FeatureName. ui: Pick and Choice (raw mode, hidden cursor, control characters dropped from descriptions, Ctrl+C ends the run with 130). - Messages: features_help, base_features, base_features_none, feature_shadowed, unknown_feature; doc links to customizing.md. - Copied: features/ (cli-tools.sh, fzf.sh, omb.sh), unchanged. - Converted: images.bats user features (listing, shadowed, in base's key) and build.bats step counts (two features and one skipped) as features.txtar and Go tests (TestFeatures, TestDescription, TestChooseFeatures, TestBuildRunsFeatures, TestPickKeys, TestPickWithoutTerminal, TestPickCtrlC). Script tests start with an empty base-features file. - e2e: with from selected, base-features holds every feature; images checks base ran base.sh and every feature, and takes base's key from its build or the newest Ubuntu base (no longer a cached --from base); from checks every feature in the node:24 and alpine:3 VMs. - Docs: customizing.md (base image features); images.md, index. Co-Authored-By: Claude Opus 5.5 <[email protected]>