Skip to content

feat: enable shell completions for standalone binary#74

Open
NormallyGaussian wants to merge 1 commit intomainfrom
docs/shell-completions
Open

feat: enable shell completions for standalone binary#74
NormallyGaussian wants to merge 1 commit intomainfrom
docs/shell-completions

Conversation

@NormallyGaussian
Copy link
Contributor

@NormallyGaussian NormallyGaussian commented Mar 12, 2026

Summary

  • Removes the _STANDALONE_MODE guard from completion install, allowing shell completions to work in PyInstaller standalone binaries
  • Click's _PARALLEL_CLI_COMPLETE env var is intercepted at the framework level before any command logic runs, so it works correctly regardless of install method
  • Updates tests to verify completions install successfully in standalone mode

Test plan

  • Verify parallel-cli completion install works from a pip install
  • Verify parallel-cli completion install works from a standalone binary
  • Run uv run pytest tests/test_cli.py -k completion to confirm test updates pass

Remove the _STANDALONE_MODE guard from completion install. Click's
_PARALLEL_CLI_COMPLETE env var is intercepted at the framework level
before any command logic runs, so it works correctly in PyInstaller
binaries.
@NormallyGaussian NormallyGaussian changed the title docs: add shell completion instructions to README feat: enable shell completions for standalone binary Mar 12, 2026
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