Description
On Windows, the CLI currently appears to be exposed through a .cmd wrapper. This can lead to inconvenient behavior when users press Ctrl+C.
When Ctrl+C is pressed while running a batch script, cmd.exe may display the prompt:
Terminate batch job (Y/N)?
This can interrupt normal CLI workflows, especially for tools that users expect to stop immediately when interrupted. It also differs from the typical behavior on Unix-like systems where Ctrl+C directly stops the running command.
Suggested solution
One possible alternative is to generate a small Windows trampoline .exe that forwards execution to the real CLI entrypoint instead of invoking it through a .cmd script.
A reference implementation of this pattern can be found in the trampoline used by astral-sh/uv:
https://github.com/astral-sh/uv/tree/main/crates/uv-trampoline
That approach generates lightweight .exe launchers and avoids relying on batch scripts.
This might be a useful approach if improving Ctrl+C behavior on Windows is something the project is interested in addressing.
Alternative
No response
Additional context
No response
Validations
Description
On Windows, the CLI currently appears to be exposed through a
.cmdwrapper. This can lead to inconvenient behavior when users press Ctrl+C.When Ctrl+C is pressed while running a batch script,
cmd.exemay display the prompt:This can interrupt normal CLI workflows, especially for tools that users expect to stop immediately when interrupted. It also differs from the typical behavior on Unix-like systems where Ctrl+C directly stops the running command.
Suggested solution
One possible alternative is to generate a small Windows trampoline
.exethat forwards execution to the real CLI entrypoint instead of invoking it through a.cmdscript.A reference implementation of this pattern can be found in the trampoline used by astral-sh/uv:
https://github.com/astral-sh/uv/tree/main/crates/uv-trampoline
That approach generates lightweight
.exelaunchers and avoids relying on batch scripts.This might be a useful approach if improving Ctrl+C behavior on Windows is something the project is interested in addressing.
Alternative
No response
Additional context
No response
Validations