PSKubectlCompletion Save Abandoned

kubectl auto-completion for PowerShell

Project README

⛔This library is no longer actively developed. kubectl has added PowerShell completion which you can now use. Thank you to everybody who contributed and used the project ??.

PowerShell auto-completion for kubectl

powershellgallery downloads

kubectl tab-completion for PowerShell. Auto-completion is based on Kubernetes 1.18 client version.

Minimum PowerShell version: PowerShell 5.1

Install-Module -Name PSKubectlCompletion

Features and Usage:

Import module and register completions as shown below.

After registering tab-completion use Tab to complete kubectl commands.

Import-Module PSKubectlCompletion
Set-Alias k -Value kubectl
Register-KubectlCompletion

Note Set-Alias is optional, but If setting an alias for kubectl, the Set-Alias command should be before Register-KubectlCompletion.

Auto Import

You can add import to your profile to avoid calling it each time you open shell:

Add-Content --Path $PROFILE --Value "Import-Module PSKubectlCompletion"

Licence:

Apache-2.0

Release Notes:

Largely stable but PRs and Issues are welcome.

Open Source Agenda is not affiliated with "PSKubectlCompletion" Project. README Source: mziyabo/PSKubectlCompletion
Stars
58
Open Issues
0
Last Commit
2 years ago

Open Source Agenda Badge

Open Source Agenda Rating