BONK: An alternative to the "touch command"

Photo by Kanchanara on Unsplash

BONK: An alternative to the "touch command"

The BLAZING FAST touch alternative with a sprinkle of mkdir features written in rust, that makes creating deeply nested files and folders a breeze.

Introduction

Bonk is a cli (command line interface) app written in rust that provides functionality to create files and folders very easily. It is similar to the unix touch command and also combines some features of the mkdir command making it a very versatile app. It is completely dependency free and has a very small footprint.

Installation

Bonk can be installed in a variety of ways

Link to Repo: github.com/elliot40404/bonk

Note: Though the crate is called bonky the executable is called bonk. This may require you to update your rust version to at least 1.63.0 which can be done by rustup update

cargo install bonky

You can install the version that is suitable for you

  • Compile it for yourself:
git clone https://github.com/elliot40404/bonk.git
cd bonk
cargo build --release
cargo install --path .

Usage

Create a file

bonk main.rs

Create a directory

bonk src/

Create a nested file

bonk src/main.rs

Create nested directories

bonk src/bonky/

Create nested file inside nested directories

bonk src/bonky/mod.rs