todotxt-ps-cli
Artifact Content
Not logged in

Artifact b683774a79846d678a81355abcc5eef5686646b4:

Wiki page [plugin] by jrtolle 2014-03-27 14:45:57.
D 2014-03-27T14:45:57.343
L plugin
P 6dacaa5430e1a2a3cacb8c1e95b4b7328cc674d1
U jrtolle
W 862
<i>Plugins</i>

The function <code>todo_LoadPlugins</code> looks for <code>.ps1</code> and <code>.psm</code> files in the plugins directory specified in the <code>todo.cfg</code> settings file.  Only the main <code>[/finfo?name=Use-Todo.psm1|Use-Todo]</code> function calls the <code>todo_LoadPlugins</code> function.

<code>.ps1</code> files are dot-sourced and <code>.psm1</code> module files are imported.  Any aliases exported from <code>.psm1</code> files are added to an array of available plugin actions.  The name of <code>.ps</code> 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 <code>Use-Todo</code> are passed to the plugin being called.  In <code>[gtasks|Use-GTasks]</code>, they are dealt with by turning the space-separated string into an array..
Z e8bf9282e54aa69bb7864ecc1e2167e4