Thanks to visit codestin.com
Credit goes to github.com

Skip to content

v88x/morse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morse CLI

Text <-> Morse code converter with audio playback

Installation

NixOS

You can install Morse CLI in multiple ways using Nix:

1. Run directly from the Flake

# Clone the repository
git clone https://github.com/v88x/morse.git
cd morse

# Run without installing
nix run .#morse

2. Build and install locally

# Build the package
nix build .#morse

# Install into your user profile
nix profile install .#morse

After installation, the morse command will be available globally:

3. Run via GitHub Flake

nix run github:v88x/morse#morse encode "hello world"

Features

  • Encode text into Morse code
  • Decode Morse code into text
  • Decode Morse code into text

Example usage:

# Encode
morse encode "hello world"
encode: hello world -> [.... . .-.. .-.. ---  .-- --- .-. .-.. -..]

# Decode
morse decode ".... . .-.. .-.. ---  .-- --- .-. .-.. -.."
decode: [.... . .-.. .-.. ---  .-- --- .-. .-.. -..] -> hello world

# Play
morse play "hello world"
play: hello world -> [.... . .-.. .-.. ---  .-- --- .-. .-.. -..]

Project structure

.
├── flake.lock
├── flake.nix
├── LICENSE
├── README.md
└── src
    ├── cmd
    │   ├── decode.go
    │   ├── encode.go
    │   ├── play.go
    │   └── root.go
    ├── go.mod
    ├── go.sum
    ├── internal
    │   ├── audio
    │   │   ├── audio.go
    │   │   └── play.go
    │   └── morse
    │       ├── decode.go
    │       ├── encode.go
    │       └── map.go
    └── main.go

License

This project is licensed under the MIT License.

About

CLI tool to encode/decode Morse code with audio playback

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published