Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user to add completion for powershell alias #1621

Merged
merged 1 commit into from Oct 3, 2022

Commits on Sep 19, 2022

  1. Allow user to add completion for powershell alias

    When a user has an alias in powershell, she will need to register that
    alias for completion.  To make that possible, we store the completion
    logic into a scriptblock variable which can easily be accessed by the
    user to register aliases.
    
    For example, if the user defines an alias for `helm`:
       PS> sal h helm
    she will need to register the alias like so:
       PS> Register-ArgumentCompleter -CommandName 'h' -ScriptBlock $__helmCompleterBlock
    
    Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
    marckhouzam committed Sep 19, 2022
    Copy the full SHA
    6ba7ebb View commit details
    Browse the repository at this point in the history