Files
Akihiro SudaandClaude Opus 4.6 5b35966c43 Add --instance flag to limactl shell so lima wrapper can forward flags
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>
2026-03-09 22:36:03 +09:00

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% %*