chaliy/psget — Issue #6: Facility to allow modules to register custom TabExpansion
Author: chaliy
Created: 2011-12-18 11:08:10+00:00
State: open

Right now, every module that would like to use TabExpansion have to override default TabExpansion method. This produce number of conflicts. For example posh-git and posh-hg after installation can mess TabExpansion method. To ovecome this problem it's possible for PsGet to take this responsibility.

Few options for discussion:

1. To host global list of tab expansions in form of regex and XxxTabExpansion funcitons;
This requires additional installation step from PsGet, this of course reduce frictionless :(.

2. To override Import-Module and if it has function XxxTabExpansion use that;
This will require import modules with custom PsGet function. Something like Import-PsGetModule.

3. Include information about module's TabExpansion function into the feed;
In this case, TabExpansion information will be evaluated only during installation phase.

Any other ideas, suggestions?