teapot-client
Simple command-line based interface to Teapot
"teapot-client" is a command-line interface to Teapot. It is party of Teaparty. It can be used to list or fetch Tcl extensions for a given platform.
Usage:
- Listing extensions:
- teapot-client list operating-system cpu-arch
- Lists extensions available for the specified operating system to stdout
- Fetching extensions:
- teapot-client get directory operating-system cpu-arch extensions...
- Fetches extensions specified and their dependencies (recursively) into directory/lib
Example 1: Fetch "pki::pkcs11" extension and all its dependencies into "test/lib":
$ mkdir test $ teapot-client get test linux x86 pki::pkcs11
Example 2: Fetch using Makefile to fetch extensions before using [starkit2exe] to convert VFS into executable
BINS = testapp-linux-x86 testapp-solaris-sparc EXTENSIONS = pki pki::pkcs11 all: $(BINS) testapp-%: testapp.vfs/main.tcl testapp.vfs/testapp.tcl rm -rf testapp.vfs/lib teapot-client get testapp.vfs $(shell echo "$@" | sed 's@^testapp-@@;s@-@ @g') $(EXTENSIONS) starkit2exe testapp.vfs "$@" $(shell echo "$@" | sed 's@^testapp-@@') rm -rf testapp.vfs/lib