torch

command module
v0.0.0-...-df3d6e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 5 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL