Skip to content

essentialkaos/scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GitHub Actions CI Status GitHub Actions CodeQL Status

InstallationCommand-line completionUsageContributingLicense


scratch is a simple utility for generating blank files for Go apps, utilities and packages.

Installation

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.

From sources

To install the scratch from sources, make sure you have a working Go 1.23+ workspace (instructions), then:

go install github.com/essentialkaos/scratch@latest

Command-line completion

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

Man documentation

You can generate man page for scratch using next command:

scratch --generate-man | sudo gzip > /usr/share/man/man1/scratch.1.gz

Usage

Contributing

Before contributing to this project please read our Contributing Guidelines.

License

Apache License, Version 2.0

About

Simple utility for generating blank files for Go apps, utilities and packages

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 2

  •  
  •