Skip to content

fix: add Powershell support to completion command#96

Open
Anu13lol wants to merge 2 commits into
plone:masterfrom
Anu13lol:fix/powershell-completion
Open

fix: add Powershell support to completion command#96
Anu13lol wants to merge 2 commits into
plone:masterfrom
Anu13lol:fix/powershell-completion

Conversation

@Anu13lol
Copy link
Copy Markdown

What this fixes

plonecli completion and plonecli completion --install
failed on Windows PowerShell.

Changes

  • Auto-detect PowerShell via PSModulePath env var
  • Added powershell to shell choices
  • Added correct PowerShell profile path using Path.home()
  • Create profile directory automatically if missing
  • Fixed success message to use . $PROFILE instead of source

Tested on

Windows 11, PowerShell, Python 3.14.5

Note on test failures

2 pre-existing failures on Windows in test_config.py
(TOML path escaping and path separator issues) —
unrelated to this PR.

Closes #92

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.

uvx plonecli --help

1 participant