Skip to content

Soulsbane/touchy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Creates a file based upon a programming language template. Essentially touch but with added powers. Custom scripting is available using the Lua programming language.

Example Terminal Output

Example Terminal Output

Commands

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.

Create

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

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

Show

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

Run

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.

About

Touch a file based on a template.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published