Quick and dirty application tools designed for the Treetop project. This was created to make it easier for me to experiment with different development patterns using the Treetop library.
This is maintained as a personal tool, behavior may change without notice.
Generate a functioning scaffold site based upon a routing configuration for a webpage. The scaffold files will be created in a temporary directory and the temporary folder path is piped to stdout by default.
# Usage: ttpage SITEMAP [OPTIONS]
ttpage routemap.toml
-> /tmp/12345678
--human
Send human readable output to stdout
--temp-dir DIR
Specify a directory to use as tmp for the purpose of generating files.
--out-format FORMAT
Specify an out format for the routemap files. 'YAML' by default but 'TOML' is also supported.
Generate an updated page routes.go file given a config file and a template.
# Usage: ttroutes ROUTEMAP TEMPLATE DEST
ttroutes routemap.yaml routes.go.templ routes.go