Skip to main content

A click extension to support shell completion for PowerShell 7

Project description

PS> click-pwsh

Supported Python Versions PyPI version

A click extension to support shell completion for PowerShell 7.

This extension is written based on click 8.x (i.e., the rewritten click's completion system). Be aware of your click version before using it.

Hope it can provide smooth experiences for Windows users. d(`・∀・)b

Installation

You can get the package from PyPI:

PS> pip install click-pwsh

Quickstart

Add the following code at the top of your script:

from click_pwsh import support_pwsh_shell_completion
support_pwsh_shell_completion()

And run the following command to install the shell completion:

PS> python -m click_pwsh install foo-bar
Complete.

where foo-bar is your command name.

Then ... all done. Re-open PowerShell 7 and enjoy the shell completion!

Update Shell Completion Scripts

If you upgrade click-pwsh, you can use the following command to update your shell completion scripts:

PS> python -m click_pwsh update foo-bar
Complete.

where foo-bar is your command name whose shell completion scripts have already installed before.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

click_pwsh-0.9.5.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

click_pwsh-0.9.5-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file click_pwsh-0.9.5.tar.gz.

File metadata

  • Download URL: click_pwsh-0.9.5.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.6 Windows/11

File hashes

Hashes for click_pwsh-0.9.5.tar.gz
Algorithm Hash digest
SHA256 45a061fba44dff4a773554818ff6fdf2424b79615d5419f16494766a631b9130
MD5 b145f02e3a878ffaa4fcfd26d479fca1
BLAKE2b-256 7e57dd426347c2890767833518cb5a6680182f929d7ef0788ca295f6023af9c3

See more details on using hashes here.

File details

Details for the file click_pwsh-0.9.5-py3-none-any.whl.

File metadata

  • Download URL: click_pwsh-0.9.5-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.6 Windows/11

File hashes

Hashes for click_pwsh-0.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5c7df1dd6a2524d66d2b0292d57b394df44ba1851203aa50082a6831b609717b
MD5 ec7a49c4e46ad68e76f89e7efeede35b
BLAKE2b-256 9a97c6e70332539d83bc39a2983ab024b04b49fef68b10d8110b0a99924b3526

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page