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.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

click_pwsh-0.9.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: click_pwsh-0.9.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.8.1 Windows/10

File hashes

Hashes for click_pwsh-0.9.4.tar.gz
Algorithm Hash digest
SHA256 ea0870e3ba9fb68818f5c0936ff245cf3a2384d52d45d45aa6e31bff272682af
MD5 f58fd7133f54d98e733a4436debded0c
BLAKE2b-256 2fd2b018b7ffc814d0038749ef2152b25d6e3cbefc83b4b1b98c346d13d16dea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: click_pwsh-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.8.1 Windows/10

File hashes

Hashes for click_pwsh-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c007b3f5b3b55e2acc14bdc61f2ee316e7ef3fb74d4779e68efb50a09b9dc418
MD5 57c6aeb7dce1024f7856d5a366f53b3c
BLAKE2b-256 515c9e4d20419cb8128d10506238148d67b1897c2ab2d99a5d7a9d2ffd8dff88

See more details on using hashes here.

Supported by

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