Difference between revisions of "Using"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
(I hope this information is correct.)
imported>Heeheehee
m (Three equal signs is a bit excessive, no?)
 
Line 9: Line 9:
 
To remove scripts from the namespace you need to clear the property commandLineNamespace. The command is this:
 
To remove scripts from the namespace you need to clear the property commandLineNamespace. The command is this:
 
<pre>
 
<pre>
set commandLineNamespace ===
+
set commandLineNamespace =
 
</pre>
 
</pre>
  
  
 
[[Category:CLI Commands]]
 
[[Category:CLI Commands]]

Latest revision as of 08:31, 7 December 2010

using

Adds the following script's functions to the namespace. In other words, it makes the script's functions available as CLI commands.

namespace

Contains a list of all user-created functions available for use as CLI commands. Note that KoLmafia is always "using" ASH, and so all ASH commands are available in this format. For instance, "> print_html <font color="red">hello</font>" will print hello to the CLI, then return void.

Clearing the namespace

To remove scripts from the namespace you need to clear the property commandLineNamespace. The command is this:

set commandLineNamespace =