Skip to content

Support token-cmd on Windows#131

Merged
andrew merged 1 commit into
mainfrom
fix/token-cmd-windows
Jul 4, 2026
Merged

Support token-cmd on Windows#131
andrew merged 1 commit into
mainfrom
fix/token-cmd-windows

Conversation

@andrew

@andrew andrew commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

PR #124 added token-cmd but returned an error on Windows since it shells out via sh -c. The tests for the happy path weren't skipped there, so windows-latest has been red on main since it merged (visible on the dependabot PRs).

Rather than skip the tests, run the command via %COMSPEC% /c on Windows so token-cmd works everywhere. Tests now use portable commands (exit 1 instead of false, %FORGE_DOMAIN% for the env-var expansion check on Windows). README and --token-cmd flag help updated to drop the Unix-only caveat.

execValue now runs the command via %COMSPEC% /c on Windows instead of
returning an error, so token-cmd works on all platforms. Tests updated
to use portable commands (exit 1 instead of false, %FORGE_DOMAIN% for
the env-var expansion test on Windows).

Fixes the windows-latest CI job which has been failing since #124.
@andrew andrew merged commit 04671f1 into main Jul 4, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant