a small CLI tool that i built to help me learn rust
basically allows you to encode (decoding is not yet implemented) a string into anything you provide in a csv
- install rust
- clone this repository
- make (or grab) a CSV file with the morse dictionary you wanna use
- each line should follow the format of
LETTER,MORSE
- each line should follow the format of
- open up your terminal/commandprompt, navigate to the directory you cloned to, and do
cargo run - paste the path to the file after the
CSV file to read:prompt- if you're on windows and you're pasting the absolute path (
C:\users\xx\..), change all backslashes (\) to forwardslashes (/). - the executable WILL panic if it cant find the file at the path you specify (in which case, just do
cargo runagain)
- if you're on windows and you're pasting the absolute path (
- type in the string you want to encode/
decodeafter theString to decode/encode:prompt - specify whether you'd like to encode (enc) or
decode (dec)after theDecode Or Encode? (dec/enc):prompt - profit. (if something in the input string cannot be found within the CSV dict you provided, it will be replaced with a
#)