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.


  1. Listing extensions:
    1. teapot-client list operating-system cpu-arch
    2. Lists extensions available for the specified operating system to stdout
  2. Fetching extensions:
    1. teapot-client get directory operating-system cpu-arch extensions...
    2. 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