touchd

module
v0.0.0-...-839e826 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Unlicense

README

Touchd - A friendlier version of touch

Background

I often find myself wanting to create a file inside of a non existing directory. To accomplish this I usually type something like mkdir foo && touch foo/bar, but this is far too many keystrokes for my liking!

Usage

touchd solves this problem by combining mkdir -p and touch into a single command: touchd foo/bar.

From touchd -help:

Usage: touchd [OPTION] FILE...

Update the access and modification times of each FILE to the current time.

A FILE argument that does not exist is created empty
If any FILE argument contains parent directories that do not exist, they are created automatically.

Options:
-help
        Print this help message and quit

Installing

Install with the go install tool.

go install github.com/penguingovernor/touchd/cmd/touchd@latest

Directories

Path Synopsis
cmd
pkg
touchd
package touchd implements a utility to create files and its necessary parent directories.
package touchd implements a utility to create files and its necessary parent directories.

Jump to

Keyboard shortcuts

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