Skip to content

Windows support: HTTPS default, PowerShell completion, platform fixes#62

Open
jganoff wants to merge 4 commits into
mainfrom
jganoff/latest-wsp
Open

Windows support: HTTPS default, PowerShell completion, platform fixes#62
jganoff wants to merge 4 commits into
mainfrom
jganoff/latest-wsp

Conversation

@jganoff
Copy link
Copy Markdown
Owner

@jganoff jganoff commented May 11, 2026

Summary

  • feat(registry)wsp registry add --from now defaults to HTTPS instead of SSH. SSH isn't configured by default on Windows, causing silent clone failures. SSH users can restore the old behaviour with wsp config set clone.protocol ssh or per-invocation --ssh. Adds --ssh flag (complement to existing --https).
  • feat(windows) — Platform plumbing: cmd /c shell runner on Windows, cross-platform PathBuf path joining in tests, Windows-compatible file lock test ordering, graceful symlink skip on Windows without Developer Mode (OS error 1314), [windows] Justfile recipe for install-hooks.
  • feat(completion)wsp completion powershell generates a full PowerShell wrapper function + Register-ArgumentCompleter scriptblock. Handles PS 5.1's silent empty-arg dropping via --% stop-parsing. Also fixes a latent POSIX/fish bug: wsp rm prefix-match check now requires a path separator so wsp rm foo doesn't incorrectly cd you out when you're inside foobar.
  • docs(completion)wsp completion --help now includes persistent setup instructions for all shells, including PowerShell-specific steps for adding to $PROFILE and creating it if it doesn't exist yet.

Test plan

  • Linux CI passes (this PR triggers it)
  • cargo test locally on Windows passes
  • wsp completion powershell output loads cleanly in PS 5.1 and PS 7
  • wsp completion --help shows persistent setup instructions
  • wsp registry add --from github.com/org --all uses HTTPS by default; --ssh and wsp config set clone.protocol ssh restore SSH

🤖 Generated with Claude Code

@jganoff jganoff force-pushed the jganoff/latest-wsp branch from 7ba5107 to 273f4ac Compare May 11, 2026 20:24
jganoff and others added 3 commits May 11, 2026 14:46
Make wsp build and all tests pass on Windows. Adapts shell invocation
(cmd /c), file locking (LockFileEx blocks same-process reads), symlink
creation (privilege error 1314 without Developer Mode), and path
comparisons (PathBuf instead of string for cross-platform separators).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds wsp completion powershell output: a wsp function wrapper and a
Register-ArgumentCompleter scriptblock. Uses non-native registration so
the completer fires for the function, not just external executables.
Handles PS 5.1's empty-arg-drop bug via the --% stop-parsing token.
Includes shell-spawning integration tests on both Windows (powershell.exe)
and Unix (bash).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jganoff jganoff force-pushed the jganoff/latest-wsp branch from 273f4ac to 2fdd7ca Compare May 11, 2026 21:47
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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