feat: vm name, mount_project, ubuntu-24.04, provision scripts, copy command, workdir#4
Open
saeta-eth wants to merge 1 commit into
Open
feat: vm name, mount_project, ubuntu-24.04, provision scripts, copy command, workdir#4saeta-eth wants to merge 1 commit into
saeta-eth wants to merge 1 commit into
Conversation
…py command, and workdir New config fields: - [vm] name: fixed VM name overriding the hash-derived default - [vm] mount_project: opt out of bind-mounting the project dir (bool*, defaults true) - [vm] image: ubuntu-24.04 support alongside existing ubuntu-22.04 - [provision] scripts: shell scripts embedded and run as root during provisioning - [ide] workdir: override the remote directory opened by `watermelon code` New command: - watermelon copy <src> <dst> [-r]: wraps `limactl copy` for host↔VM file transfer CLI changes: - --name flag on all commands (run, exec, stop, destroy, status, code, logs) - --workdir flag on `watermelon run` - VM name resolution order: --name flag → [vm] name → hash-derived fallback Docs updated: COMMANDS.md, CONFIG_SPEC.md, examples/monorepo, examples/ai-coding-assistants
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
[vm] name— fixed VM name overriding the hash-derivedwatermelon-{project}-{hash}default; enables targeting the same VM from any directory[vm] mount_project— opt-out of bind-mounting the project dir into/project(defaults true via*bool); needed for VM-as-environment setups like the dev Docker host[vm] image— addsubuntu-24.04support alongside the existingubuntu-22.04default[provision] scripts— shell scripts to embed and run as root during provisioning; paths relative to project dir or absolute[ide] workdir— override the remote directory opened bywatermelon codewatermelon copy— new command wrappinglimactl copyfor host↔VM file transfer (-rfor recursive)--nameflag on all commands (run,exec,stop,destroy,status,code,logs)--workdirflag onwatermelon run--nameflag →[vm] namein config → hash-derived fallbackTest plan
go test ./...passes (all new behaviour covered by unit tests)watermelon run --name somospollo-vmtargets a fixed-name VM without a config filemount_project = falsegenerates Lima YAML withmounts: []image = "ubuntu-24.04"generates correct Lima image URLs[provision] scriptscontent is embedded verbatim into Lima YAML provision blockswatermelon copy ./file.txt myvm:/tmp/andwatermelon copy -r ./dir/ myvm:/tmp/work end-to-endwatermelon codeopens IDE at[ide] workdirwhen set