Giter Site home page Giter Site logo

mziyabo / pskubectlcompletion Goto Github PK

View Code? Open in Web Editor NEW
58.0 7.0 10.0 78 KB

kubectl auto-completion for PowerShell

Home Page: https://www.powershellgallery.com/packages/PSKubectlCompletion

License: Other

PowerShell 100.00%
kubectl powershell tab-completion

pskubectlcompletion's Introduction

β›”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

Installation from PowerShell Gallery:

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.

pskubectlcompletion's People

Contributors

mziyabo avatar tradiff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pskubectlcompletion's Issues

How to make auto completion work with alias

Hi mziyabo,

Thanks for the great tool! I am new to k8s, so this helps me a lot!

I have a question as how to enable auto completion after I set alias for kubectl.

Specially, here is what I've in PS profile:

Import-Module PSKubectlCompletion
Register-KubectlCompletion
Set-Alias -Name k -Value kubectl -Scope global

Auto completion only works for kubectl but not for k.

Do you know how to make it work for alias?

Thanks very much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.