Skip to content

NilsIrl/morse-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

morse-code

GCI Task

Usage

$ git clone git@github.com:NilsIrl/morse-code.git
$ cd morse-code
$ cargo run -- encode <<< "SOS"
... ___ ...
$ cargo run -- encode <<< "SOS" | cargo run -- decode
SOS
$ cargo run -- encode --dash \* --dot \( <<< "morse code is obselete"
** *** (*( ((( ( / *(*( *** *(( ( / (( ((( / *** *((( ((( ( (*(( ( * (
$ cargo run -- decode --dash \* --dot \( <<< '** *** (*( ((( ( / *(*( *** *(( ( / (( ((( / *** *((( ((( ( (*(( ( * ('
MORSE CODE IS OBSELETE

Use the --help argument to get more information.

The encode subcommand encodes and the decode subcommand, you guessed it, decodes.

Input is given from stdin.

Releases

No releases published

Packages

No packages published

Languages