2 releases

0.1.1 Jan 6, 2023
0.1.0 Jan 6, 2023

#11 in #mkdir

MIT license

28KB
63 lines

mkmk

mkmk is mkdir -p and touch.

Crates.io Crates.io cargo test codecov

Installation

cargo install mkmk

Usage

touch aaa/bbb/ccc.txt
# touch: aaa/bbb/ccc.txt: No such file or directory
# but...


mkmk aaa/bbb/ccc.txt
# A folder named "aaa/bbb" will be created, followed by a file named "ccc.txt".
# Equivalent to:
# mkdir -p aaa/bbb && touch aaa/bbb/ccc.txt


mkmk ddd.txt eee.txt fff/ggg.txt
# Multiple paths are OK


# Other commands
mkmk --help
mkmk --version

Dependencies

~1.2–1.8MB
~34K SLoC