mks is a tool to create files and the intermediate directories.
Install with brew
brew install paulvollmer/tap/mks
Install with go
go get -u github.com/paulvollmer/mks
The philosophy behind mks
is simplicity. With the following command you can create a file foo.txt
inside the path/to
directory.
Usage:
mks target/path/file.txt
mks target/path/file.txt 'file body here'
echo 'file body here' | mks target/path/file.txt
Flags
-perm int the file permission (default 0644)
-version print the version and exit
Please report issues at https://github.com/paulvollmer/mks/issues
Copyright 2019-2022, Paul Vollmer
git clone git@github.com:paulvollmer/mks.git
cd mks
make
# is equivalent to
# make fmt
# make lint
# make test
# make build