Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(cli): implement Windows CLI registration via the user PATH#69

Open
DocInTardis wants to merge 2 commits into
blueberrycongee:mainblueberrycongee/termcanvas:mainfrom
DocInTardis:fix/windows-cli-registrationDocInTardis/termcanvas:fix/windows-cli-registrationCopy head branch name to clipboard
Open

fix(cli): implement Windows CLI registration via the user PATH#69
DocInTardis wants to merge 2 commits into
blueberrycongee:mainblueberrycongee/termcanvas:mainfrom
DocInTardis:fix/windows-cli-registrationDocInTardis/termcanvas:fix/windows-cli-registrationCopy head branch name to clipboard

Conversation

@DocInTardis
Copy link
Copy Markdown
Contributor

@DocInTardis DocInTardis commented Mar 22, 2026

Summary

  • implement CLI registration and unregistration on Windows by updating the user-scoped Path environment variable

Changes

  • add electron/windows-cli-path.ts helpers for PATH parsing, normalization, deduplication, and removal
  • implement Windows branches in isCliRegistered(), registerCli(), and unregisterCli()
  • use PowerShell to read/write the user PATH entry
  • keep the existing macOS and Linux registration flows unchanged
  • add focused regression tests for case-insensitive and slash-insensitive PATH handling

Testing

  • node --experimental-strip-types --test tests/windows-cli-path.test.ts

Notes

  • the updated PATH is user-scoped, so newly opened terminals should pick it up after registration

Closes #34

@blueberrycongee
Copy link
Copy Markdown
Owner

Superseded by newer PR. Closing duplicate.

@blueberrycongee
Copy link
Copy Markdown
Owner

Reopening: this Windows CLI PATH registration has no equivalent in #80-96 range. Unique contribution.

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.

CLI registration (registerCli/unregisterCli) not implemented for Windows

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.