torch
Create a file with a template.
Installation
Run the following:
go install codeberg.org/9yokuro/torch@latest
Usage
If you only want to create files:
torch foo bar ...
If you want to create files with parent directories created as needed:
torch -parents foo/bar/baz qux/quux ...
If you want to create files and set file mode:
torch -mode 0755 foo bar ...
If you want to create files with a template,
create a template file in the templates directory ($XDG_CONFIG_HOME/torch/templates
):
echo '#!/bin/sh' >> "$XDG_CONFIG_HOME/torch/templates/sh"
and run the following:
torch -template sh foo.sh