Giter Site home page Giter Site logo

bonk's Introduction

Contributors Forks Stargazers Crates.io Issues MIT License


Logo

Bonk

The blazingly fast touch alternative written in rust. Made for the sole purpose to create files.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License

About The Project

Product Name Screen Shot

There are many ways to create a file via cli depending on the OS you are on but me currently being on windows, though some command are aliased they don't feel natural (New-Item instead of touch) and I miss using some of the unix commands that I am so used to. Thats how bonk came to be.

Here's why:

  • Works on all OS'
  • Can Also create directories recursively
  • Why not?

(back to top)

Getting Started

Installation

Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.

  1. Clone the repo
    git clone https://github.com/elliot40404/bonk.git
  2. Build and Install the rust binary
    cd bonk
    cargo build --release
    cargo install --path .

or

# install directly from this repo
scoop install https://raw.githubusercontent.com/elliot40404/bonk/master/bonk.json
# Additionally you can add my bucket and install from there
scoop bucket add elliot
scoop install elliot/bonk
cargo install bonky

Note: name of the executable is bonk though the crate is named bonky.

sudo curl -L https://github.com/elliot40404/bonk/releases/latest/download/bonk_linux_x64 -o /usr/local/bin/bonk && sudo chmod +x /usr/local/bin/bonk

Download the binary from the releases page here

(back to top)

Usage

Print Help

bonk -h
bonk --help

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

(back to top)

Roadmap

  • Handle Non-UTF8 files/folders
  • Add timestamp modification functionality

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

bonk's People

Contributors

elliot40404 avatar

Stargazers

Akai Omurbek uulu avatar Julio Pinto Coelho avatar  avatar sioodmy avatar Sean avatar Kayla Firestack avatar Leah Amelia Chen avatar  avatar Lunaphied avatar robin avatar raf avatar Qyriad avatar  avatar Masa555🌈 avatar lapis avatar Nitzan Papini avatar katothu avatar Max Gudkov avatar akshay kadam (a2k) avatar ADS avatar Ali Alsabbah avatar Omi avatar  avatar Adam Recvlohe avatar Elia Pasquali avatar Gregor avatar Bugaddr avatar Efreak avatar Dmitry Jakubovsky avatar Dominik Moser avatar Daniel Nikolaev avatar Amit Kenkre avatar Xaxeric avatar Itamar Soares avatar Utkarsh Thanvi avatar Praneeth Jain avatar Soc Virnyl S. Estela avatar  avatar a13ph avatar fikrihakim avatar  avatar  avatar jacobi petrucciani avatar Jrchintu avatar  avatar  avatar wh0am1 avatar Bryan A. S. avatar boB Rudis avatar Pyrox avatar Shayon avatar Jirubizu avatar Melih avatar Constantin GIERCZAK--GALLE avatar Tomasz Karbownicki avatar Justin Heyes-Jones avatar Can Evgin avatar  avatar Aarrayy avatar  avatar  avatar Hunter Frerich avatar  avatar Andrejs Agejevs avatar Petar avatar  avatar Shadow Monarch  avatar Mon avatar Benson avatar Mayank Raichura avatar Morten avatar Amrinder Singh avatar Marcus S. Abildskov avatar Sai Vishnu M avatar Nikith Sai avatar linchuan avatar Abhishek Bhasker avatar Pablo avatar Adewole Conde avatar Suresh Karuppaiya avatar Perelyn avatar Shreyas Kapale avatar Akash Patel avatar Thew Dhanat avatar Julius Alphonso avatar Даниил Николаев (NeverMine) avatar  avatar Norregaarden avatar Marcin "Mikut" Mikuła avatar Allan Galera Teixeira avatar  avatar Andrew Malikov avatar Maximous Black avatar Ndil-Adjim  Sou Ngadoy avatar Jonggwan Park avatar Hanz avatar Yevgnen avatar

Watchers

 avatar

bonk's Issues

Errors will panic

Instead of panicing on error, bonk should cleanly exit with status 1.

Help parameters create files

Amy parameters, including help parameters, will be created as files.

❯ ls ./-* -lh
ls: cannot access './-*': No such file or directory

~ took 16ms
❯ bonk --help >/dev/null

~ took 32ms
❯ bonk -h >/dev/null

~ took 32ms
❯ bonk --something >/dev/null

~ took 49ms
❯ ls ./-* -lh
-rw------- 1 u0_a1429 u0_a1429 0 Feb  2 00:18 ./--help
-rw------- 1 u0_a1429 u0_a1429 0 Feb  2 00:18 ./--something
-rw------- 1 u0_a1429 u0_a1429 0 Feb  2 00:18 ./-h

~ took 21ms
❯

SCoop-pacakge ! request

i liked how bonk is so useful . and make work so eaasy

it would be good if u add scoop-manifest for window user
scoop.sh is a package -manager for window 🥺

please make it avaible there

Benchmark

Blazingly fast is incomplete without a benchmark 😃

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.