{"id":14064080,"url":"https://github.com/vNugglets/PowerShellArgumentCompleters","last_synced_at":"2025-07-29T17:32:00.641Z","repository":{"id":43830497,"uuid":"199934502","full_name":"vNugglets/PowerShellArgumentCompleters","owner":"vNugglets","description":"Some work on making Argument Completers for PowerShell cmdlets (like those from VMware PowerCLI)","archived":false,"fork":false,"pushed_at":"2022-02-16T23:31:46.000Z","size":1159,"stargazers_count":14,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-05-23T00:30:22.531Z","etag":null,"topics":["argumentcompleter","powercli","powershell","tab-completion","vmware"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vNugglets.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":"2019-07-31T21:58:13.000Z","updated_at":"2023-06-07T05:31:16.000Z","dependencies_parsed_at":"2022-08-24T14:37:03.588Z","dependency_job_id":null,"html_url":"https://github.com/vNugglets/PowerShellArgumentCompleters","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vNugglets%2FPowerShellArgumentCompleters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vNugglets%2FPowerShellArgumentCompleters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vNugglets%2FPowerShellArgumentCompleters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vNugglets%2FPowerShellArgumentCompleters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vNugglets","download_url":"https://codeload.github.com/vNugglets/PowerShellArgumentCompleters/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228032924,"owners_count":17858917,"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":["argumentcompleter","powercli","powershell","tab-completion","vmware"],"created_at":"2024-08-13T07:03:40.077Z","updated_at":"2024-12-04T02:31:09.347Z","avatar_url":"https://github.com/vNugglets.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"## Argument Completers for some PowerShell module cmdlets\n\nA collection of some PowerShell argument completers for various cmdlets from some PowerShell modules:\n\n| Argument Completer Script | Description | PSGallery Info |\n|---------------------------|-------------|----------------|\n| Register-VNActiveDirectoryArgumentCompleter.ps1 | Completers for Microsoft's `ActiveDirectory` PowerShell module | [![Latest Version](https://img.shields.io/powershellgallery/v/Register-VNActiveDirectoryArgumentCompleter.svg?style=flat\u0026logo=powershell\u0026label=Latest)](https://www.powershellgallery.com/packages/Register-VNActiveDirectoryArgumentCompleter) [![Downloads](https://img.shields.io/powershellgallery/dt/Register-VNActiveDirectoryArgumentCompleter.svg?style=flat\u0026logo=powershell\u0026label=Downloads)](https://www.powershellgallery.com/packages/Register-VNActiveDirectoryArgumentCompleter) |\n| Register-VNAWSArgumentCompleter.ps1 | Completers for some of the AWS PowerShell modules `AWS.Tools.*`, and the monolithic `AWSPowerShell*` | [![Latest Version](https://img.shields.io/powershellgallery/v/Register-VNAWSArgumentCompleter.svg?style=flat\u0026logo=powershell\u0026label=Latest)](https://www.powershellgallery.com/packages/Register-VNAWSArgumentCompleter) [![Downloads](https://img.shields.io/powershellgallery/dt/Register-VNAWSArgumentCompleter.svg?style=flat\u0026logo=powershell\u0026label=Downloads)](https://www.powershellgallery.com/packages/Register-VNAWSArgumentCompleter) |\n| Register-VNVMwarePowerCLIArgumentCompleter.ps1 | Completers for VMware PowerShell module `VMware.PowerCLI` | [![Latest Version](https://img.shields.io/powershellgallery/v/Register-VNVMwarePowerCLIArgumentCompleter.svg?style=flat\u0026logo=powershell\u0026label=Latest)](https://www.powershellgallery.com/packages/Register-VNVMwarePowerCLIArgumentCompleter) [![Downloads](https://img.shields.io/powershellgallery/dt/Register-VNVMwarePowerCLIArgumentCompleter.svg?style=flat\u0026logo=powershell\u0026label=Downloads)](https://www.powershellgallery.com/packages/Register-VNVMwarePowerCLIArgumentCompleter) |\n\n\n\nContents:\n\n- [What is Argument Completing?](#whatIsArgCompleting)\n- [Getting Started](#gettingStarted)\n- [Deeper Info](#deeperInfo)\n\n\n\u003ca id=\"whatIsArgCompleting\"\u003e\u003c/a\u003e\n## What is Argument Completing?\nBackground: PowerShell argument completers are a way to enable tab-completion of cmdlet parameter values. These can be from static sources, live sources -- whatever you can imagine.  Here are some examples of argument completing for a few VMware PowerCLI cmdlets' parameters:\n\n![Examples of Argument Completers for cmdlets from VMware.PowerCLI](docs/resources/ArgCompleterDemo_Keystrokes.gif)\n\n\u003ca id=\"gettingStarted\"\u003e\u003c/a\u003e\n## Getting Started\nThe [docs](./docs) for this project have the information about getting started with using argument completers. Check them out.\n\n\u003ca id=\"deeperInfo\"\u003e\u003c/a\u003e\n## Deeper Info\n\nOne can use a scriptblock of goodness in order to generate the completion results.  So, for example:\n``` PowerShell\n## with a proper argument completer for the -Name parameter, the following cycles through VMs whose name match the given string, live, from the given virtual infrastructure\nGet-VM -Name matt\u003ctab\u003e\n```\nBy registering an argument completer scriptblock for a particular cmdlet and parameter, at tab-completion time, that completer generates a list of completion results (assuming any matches), through which the user can subsequently cycle via further `Tab`-ing.  The workflow:\n- register argument completer scriptblock for a cmdlet/parameter pair (say, by runnig a script that has argument completers in it, and that registers them for cmdlet/parameter pairs)\n- for a registered argument completer, the argument scriptblock is executed one time for the first press of the `Tab` key, creating a list of completion results (if any)\n- each subsequent press of `Tab` cycles through the list of completions results (assuming that there is more than one)\n- one can also see the whole list of completion results, assuming they are in an environment that supports such things, like in something with IntelliSense, or in a PowerShell session with the `PSReadline` module loaded\n\nA bit deeper explanation on the behavior resides at [https://github.com/mtboren/PowerCLIFeedback/blob/master/PowerCLISuggestions.md](https://github.com/mtboren/PowerCLIFeedback/blob/master/PowerCLISuggestions.md) in the \"Support Natural PowerShell Interactive Behavior\" section\n\nFor a bit more information about PowerShell argument completers (though there is not extensive official documentation on argument completers themselves to be found, yet), see [Register-ArgumentCompleter\n](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/register-argumentcompleter)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FvNugglets%2FPowerShellArgumentCompleters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FvNugglets%2FPowerShellArgumentCompleters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FvNugglets%2FPowerShellArgumentCompleters/lists"}