Not logged in


The function todo_LoadPlugins looks for .ps1 and .psm files in the plugins directory specified in the todo.cfg settings file. Only the main Use-Todo function calls the todo_LoadPlugins function.

.ps1 files are dot-sourced and .psm1 module files are imported. Any aliases exported from .psm1 files are added to an array of available plugin actions. The name of .ps files is added to the array of available plugin actions.

Any extra parameters on the commandline that are not picked up by the parameters of Use-Todo are passed to the plugin being called. In Use-GTasks, they are dealt with by turning the space-separated string into an array..