{"id":24189261,"url":"https://github.com/stephlin/click-pwsh","last_synced_at":"2025-09-21T12:33:17.387Z","repository":{"id":64308436,"uuid":"574104407","full_name":"StephLin/click-pwsh","owner":"StephLin","description":"A click extension to support shell completion for PowerShell 7","archived":false,"fork":false,"pushed_at":"2025-01-12T14:44:53.000Z","size":14,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-12T15:35:22.408Z","etag":null,"topics":["click","powershell","pwsh","python","shell-completion"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/click-pwsh","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StephLin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-04T12:51:58.000Z","updated_at":"2025-01-12T14:44:45.000Z","dependencies_parsed_at":"2023-01-15T11:15:23.979Z","dependency_job_id":null,"html_url":"https://github.com/StephLin/click-pwsh","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephLin%2Fclick-pwsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephLin%2Fclick-pwsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephLin%2Fclick-pwsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephLin%2Fclick-pwsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StephLin","download_url":"https://codeload.github.com/StephLin/click-pwsh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233754696,"owners_count":18725047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["click","powershell","pwsh","python","shell-completion"],"created_at":"2025-01-13T14:24:07.891Z","updated_at":"2025-09-21T12:33:12.029Z","avatar_url":"https://github.com/StephLin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `PS\u003e` click-pwsh\n\n[![Supported Python Versions](https://img.shields.io/pypi/pyversions/click-pwsh)](https://pypi.org/project/click-pwsh/) [![PyPI version](https://badge.fury.io/py/click-pwsh.svg)](https://badge.fury.io/py/click-pwsh)\n\nA [click](https://github.com/pallets/click) extension to support shell completion for **[PowerShell 7](https://github.com/PowerShell/PowerShell)**.\n\nThis 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.\n\nHope it can provide smooth experiences for Windows users. d(`･∀･)b\n\n## Installation\n\nYou can get the package from PyPI:\n\n```bash\nPS\u003e pip install click-pwsh\n```\n\n## Quickstart\n\nAdd the following code at the top of your script:\n\n```python\nfrom click_pwsh import support_pwsh_shell_completion\nsupport_pwsh_shell_completion()\n```\n\nAnd run the following command to install the shell completion:\n\n```bash\nPS\u003e python -m click_pwsh install foo-bar\nComplete.\n```\n\nwhere `foo-bar` is your command name.\n\nThen ... all done. Re-open PowerShell 7 and enjoy the shell completion!\n\n## Update Shell Completion Scripts\n\nIf you upgrade click-pwsh, you can use the following command to update your shell completion scripts:\n\n```bash\nPS\u003e python -m click_pwsh update foo-bar\nComplete.\n```\n\nwhere `foo-bar` is your command name whose shell completion scripts have already installed before.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephlin%2Fclick-pwsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephlin%2Fclick-pwsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephlin%2Fclick-pwsh/lists"}