mirror of
https://github.com/lima-vm/lima.git
synced 2026-10-28 19:54:35 +08:00
The `lima` helper script could not pass `limactl shell` flags (e.g. --sync, --start) because it had no way to insert the instance name at the right position among user-provided flags. Adding a hidden --instance flag lets the wrapper simply do `limactl shell --instance $LIMA_INSTANCE "$@"`, forwarding all flags without needing to enumerate them. Fixes issue 4651 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
9 lines
361 B
Batchfile
Executable File
9 lines
361 B
Batchfile
Executable File
@echo off
|
|
REM Environment Variables
|
|
REM LIMA_INSTANCE: Specifies the name of the Lima instance to use. Default is "default".
|
|
REM LIMACTL: Specifies the path to the limactl binary. Default is "limactl" in %PATH%.
|
|
|
|
IF NOT DEFINED LIMACTL (SET LIMACTL=limactl)
|
|
IF NOT DEFINED LIMA_INSTANCE (SET LIMA_INSTANCE=default)
|
|
%LIMACTL% shell --instance %LIMA_INSTANCE% %*
|