Go to file
2022-11-20 22:11:11 +01:00
src remove unnecessary assignment. 2022-11-20 22:10:41 +01:00
.gitignore initial commit. 2022-11-20 21:52:57 +01:00
Cargo.toml remove unused dependency... 2022-11-20 22:11:11 +01:00
LICENSE initial commit. 2022-11-20 21:52:57 +01:00
README.md initial commit. 2022-11-20 21:52:57 +01:00

🐍 snakify

Command line utility to quickly snake-caseify any input text.


Example

Quickly create source file from copied text

$ snakify 1879 Minimum XOR Sum of Two Arrays.rs | xargs touch

$ ls
total 0
0 ./  0 ../  0 1879_minimum_xor_sum_of_two_arrays.rs*


Installation

Make sure you have a working rust environment!

Then execute the following commands in order. This assumes /usr/bin is on your $PATH:

  1. Clone the repository.
    git clone https://gitlab.com/m-hgn/snakify-rs.git
    
  2. Build the release executable.
    cd snakify && cargo build --release
    
  3. Install the binary
    sudo cp target/release/snakify-rs /usr/bin/snakify
    
  4. Optional clean up
    cd .. && rm -rf snakify-rs