20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
* -plugin plugin : Use plugin
* -plugininfo info : Pass info to plugin (plugin specific)
* -plugindump plugin : Dump plugin source to stdout
* -pluginlist : List known plugins
* -pluginallow : Allow full access privilege for a plugin.
A plugin may further define command line options that it accepts.
<h1>General Format</h1>
A plugin is a Tcl script file that must start with the verbatim sequence
"##Eskil Plugin :". A plugin is sourced and used in its own safe
interpreter and thus have free access to its own global space. Hookup
points are defined by declaring specifically named procedures as specified
|
>
>
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
* -plugin plugin : Use plugin
* -plugininfo info : Pass info to plugin (plugin specific)
* -plugindump plugin : Dump plugin source to stdout
* -pluginlist : List known plugins
* -pluginallow : Allow full access privilege for a plugin.
A plugin may further define command line options that it accepts.
A way to see the plugin's options is to do:
<pre>eskil -plugin <plg> -help</pre>
<h1>General Format</h1>
A plugin is a Tcl script file that must start with the verbatim sequence
"##Eskil Plugin :". A plugin is sourced and used in its own safe
interpreter and thus have free access to its own global space. Hookup
points are defined by declaring specifically named procedures as specified
|
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
A plugin can declare command line options that should be accepted by Eskil.
They will be passed on to the plugin through the ::argv list.
If the initial "##Eskil" line is followed by comments formatted as below,
it adds options. Any empty line will end parsing for such lines.
A line like "## Option -<option>" declares an option that takes a value and
a line like "## Flag -<option>" declares an option without value. The rest of
the line after the option name is ignored and can be used for comments.
<h1>File plugin</h1>
To process the files being compared, the following procedure should be
defined in the plugin file:
<pre>proc PreProcess {side chi cho} {...}</pre>
|
|
>
>
|
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
A plugin can declare command line options that should be accepted by Eskil.
They will be passed on to the plugin through the ::argv list.
If the initial "##Eskil" line is followed by comments formatted as below,
it adds options. Any empty line will end parsing for such lines.
A line like "## Option -<option>" declares an option that takes a value and
a line like "## Flag -<option>" declares an option without value. The rest of
the line after the option name is functionally ignored and can be used for
comments. It is included in command line help, so the rest should preferably
be formatted as " : Explanation" if used.
<h1>File plugin</h1>
To process the files being compared, the following procedure should be
defined in the plugin file:
<pre>proc PreProcess {side chi cho} {...}</pre>
|