Installation • Command-line completion • Usage • Contributing • License
scratch
is a simple utility for generating blank files for Go apps, utilities and packages.
Important
Before the first run you have to create a directory for your templates. By default, all templates must be stored in the ~/.config/scratch
directory.
To install the scratch
from sources, make sure you have a working Go 1.22+ workspace (instructions), then:
go install github.com/essentialkaos/scratch@latest
You can download prebuilt binaries for Linux from EK Apps Repository:
bash <(curl -fsSL https://apps.kaos.st/get) scratch
You can generate completion for bash
, zsh
or fish
shell.
Bash:
sudo scratch --completion=bash 1> /etc/bash_completion.d/scratch
ZSH:
sudo scratch --completion=zsh 1> /usr/share/zsh/site-functions/scratch
Fish:
sudo scratch --completion=fish 1> /usr/share/fish/vendor_completions.d/scratch.fish
You can generate man page for scratch
using next command:
scratch --generate-man | sudo gzip > /usr/share/man/man1/scratch.1.gz
Before contributing to this project please read our Contributing Guidelines.