Add repo-backed vm run command
Create a CLI-only banger vm run [path] flow that resolves the enclosing git repository, creates a VM, imports a guest checkout, and launches opencode attach automatically from the host. Build the guest checkout by bundling git history plus the resolved base and head commits, cloning that bundle in the guest, and overlaying tracked plus untracked non-ignored files over SSH so local working-tree changes carry over. Support guest-only branch creation with --branch and --from, reject bare repos and submodules, and add selective tar helpers plus CLI seams to keep the workflow testable. Validate with go test ./..., make build, banger vm run --help, and the expected --from requires --branch error path.
This commit is contained in:
parent
8bcc767824
commit
2ebc6f99c6
5 changed files with 929 additions and 0 deletions
|
|
@ -113,6 +113,15 @@ Create and use a VM:
|
|||
|
||||
`vm create` stays synchronous by default, but on a TTY it now shows live progress until the VM is fully ready.
|
||||
|
||||
Start a repo-backed VM session and attach `opencode` automatically:
|
||||
|
||||
```bash
|
||||
./build/bin/banger vm run
|
||||
./build/bin/banger vm run ../some-repo --branch feature/alpine --from HEAD
|
||||
```
|
||||
|
||||
`vm run` resolves the enclosing git repository, creates a VM, copies a git checkout plus current tracked and untracked non-ignored files into `/root/<repo-name>`, and then runs `opencode attach` from the host against the guest.
|
||||
|
||||
## Web UI
|
||||
|
||||
`bangerd` serves a local web UI by default at:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue