Salut, hello in French, A multilingual greeting CLI tool with profanity levels written in Rust.
This tool is designed to greet you with motivational messages when you open your terminal.
- Support for multiple languages
- Configurable profanity levels (0-2)
- Clean command-line interface with helpful error messages
- Extensible greeting system via JSON configuration
See Releases.
Add to your ~/.bashrc or ~/.zshrc:
# Add this line to get greeted every time you open a terminal
salut --name <YourName> --language en --profanity 1Or for a more dynamic approach:
# Random profanity level each time
salut --name <YourName> --language en --profanity $((RANDOM % 3))Usage: salut [OPTIONS] --name <NAME>
Options:
-n, --name <NAME> Name to greet
-l, --language <LANGUAGE> Language (en, fr, es, de) [default: en]
-p, --profanity <PROFANITY> Profanity level (0-2) [default: 0]
-h, --help Print help
-V, --version Print version-n, --name <NAME>: Name to greet (required)-l, --language <LANGUAGE>: Language code (default: en)- Available:
en(English),fr(French),es(Spanish),de(German)
- Available:
-p, --profanity <LEVEL>: Profanity level (default: 0)0: Clean greeting1: Mild work motivation with profanity2: Strong work motivation with profanity
# English greetings
salut -n Alice -l en -p 1 # "Hello Alice! Now get to fucking work!"
# French greetings
salut -n Bob -l fr -p 2 # "Salut Bob! Bouge-toi le cul et fais péter le travail!"
# Spanish greetings
salut -n Carol -l es -p 0 # "Hola Carol!"salut/
├── Cargo.toml # Project metadata and dependencies
├── README.md # This file
├── greetings.json # Greeting templates for all languages
└── src/
└── main.rs # Main application code
We welcome contributions to make salut even more motivational! Here's how you can help:
cargo build --releaseThe binary will be available at target/release/salut.
- Fork the repository
- Add your language to
greetings.jsonwith (non-)appropriate work-motivational messages. The new language should have three profanity levels :
{
"greetings": {
"en": {
"0": "Hello {name}!",
"1": "Hello {name}! Now get to fucking work!",
"2": "Hello {name}! Time to kick ass and get shit done!"
},
}
}- Update the language list in
src/main.rshelp text if needed - Add examples to the README
- Test your changes with
cargo test - Submit a pull request
- Make greetings more motivational and work-focused
- Ensure cultural appropriateness while maintaining the intended spirit
- Keep the progressive profanity levels (0: clean, 1: mild, 2: strong)
- Add new features (environment variable support, config files, etc.)
- Improve error handling
- Add more comprehensive tests
- Optimize performance
git clone https://github.com/yourusername/salut.git
cd salut
cargo build
cargo testclap: Command-line argument parsingserde: JSON serialization/deserializationserde_json: JSON handling
MIT