Releases: mittelmark/tclmain
tclmain 0.2.1
Tclmain 0.2.1
This is a little Tcl script whch allows you to run Tcl files or the main procedure from your package from within your package directory without placing them into a folder belonging to your PATH variable. This is similar to the Python approach "python -m modulename arguments
. Either a file packagename_main.tcl or a possible procedure packagename::main will be called if the script is executed like this:
tclmain -m packagename
Example
If you have the package hyperhelp is installed you can load an hyperhelp file like this:
tclmain -m hyperhelp path-to-help.md
Installation
Download the script file to a folder belonging to your PATH and make it executable:
$ wget https://github.com/mittelmark/tclmain/releases/download/v0.2.1/tclmain -O ~/.local/bin/tclmain
$ chmod 755 ~/.local/bin/tclmain
$ tclmain --version
tclmain version: 0.2.1
Note
This release was tested with Tcl 9 and seems to work with Tcl 8.6 and Tcl 9.0.
Release 0.2.0 - support for pkgname::main procedure
This release adds support for pkgname::main argv
procdures. See the README for more details.
Initial release January 2023
This is the first release which should provide already the main features. Please note, that currently no package really supports this approach, so you should create your own underline files in your config folder. May be in the future packages will appear which supports this approach.