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.7.tar.gz (4.1 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.7-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: click_pwsh-0.9.7.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for click_pwsh-0.9.7.tar.gz
Algorithm Hash digest
SHA256 27dfb99b4114f3580b40c8e24dca313c2fc29c33f15b0948bf8018a6a7f8e1f6
MD5 d3926cb2d11c977e25689ab18db1c89a
BLAKE2b-256 b1e1b1edde4e54718d508aa36bbef52d40a833138c74c3237bf028222d5eb0b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for click_pwsh-0.9.7-py3-none-any.whl
Algorithm Hash digest
SHA256 aa83917e4e643e2b267b31ee1bb877c11cddbf347a1d362b39f6d3db99a96639
MD5 a62853b1eeec4f715768a99411c4baa2
BLAKE2b-256 333c9fa125106a75fab47567d2f58fa26b055f0188095df6c298f48cc3563f3b

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