Runtime Customisation¶
Since KISSB runs on TCL, it is possible to use TCL zipfs package to create a single file runtime of Kissb with additional scripts and packages.
Such runtimes are best build directly from an existing single file runtime, for example called via the KISSB Wrapper.
To create a new runtime, users can use the kissb.runtime package from a build file or directly from the command line.
For example to create a new runtime file, without any changes:
This will create a new executable called "mykissb" which you can just run:
Adding Extra Configuration¶
To add some extra config files which are loaded when KISSB starts, you can use the argument --conf:
Now when running the new runtime, you will see the puts from the configuration files loaded during kissb startup:
Adding Extra Packages¶
To add extra TCL package folders which will be available in the runtime, use the --packages argument:
The new mykissb runtime can now load the package kissb.testpackage, for example to call the "hi" command from the command line:
$ ./mykissb .testpackage.hi
INFO.top KISSB=dev@250627,TCL=9.0.1,GIT_ROOT=xxxxx
INFO.top Running command testpackage.hi: bin=testpackage.hi, args=
Loading testpackage...
Hello from pkg...
We can see the puts first from loading the package, then from calling the "hi" command itself.