Creates a file based upon a programming language template. Essentially touch but with added powers. Custom scripting is available using the Lua programming language.
All commands take a programming language and the template name as arguments for the most part. In most cases the template name can be omitted.
Creates a new file based on a template. The example below creates a file based on the default 'go' language template.
touchy create go
You can also provide a template name after the language name to create a specific template:
touchy create go main
List all available programming languages and/or templates of a programming language. The example below lists all programming languages.
touchy list all
To get a list of a programming languages templates use the following command example.
touchy list go
To get a list of scripts use the following command example
touchy list scripts
Displays the colorized contents of a template to the terminal. Example that will show the contents of the default go template.
touchy show go
You can also provide a template name after the language name to show a specific template.
touchy show go main
Runs a script. The example below runs the default test script.
touchy run test
Again you can get a list of scripts using the following command:
touchy list scripts
Note that the API is not yet stablized and will be documented once it is.