#language #greeting #command-line-arguments #cli #english #hello #different

app welcomer

This is a simple CLI program to say hello in different languages

5 releases

0.1.4 Sep 21, 2024
0.1.3 Aug 1, 2024
0.1.2 Jul 31, 2024
0.1.1 Jul 30, 2024
0.1.0 Jul 30, 2024

#541 in Development tools

Download history 344/week @ 2024-07-30 3/week @ 2024-09-10 165/week @ 2024-09-17 29/week @ 2024-09-24 21/week @ 2024-10-01

356 downloads per month

MIT license

4KB

Welcomer

Overview

This simple CLI program generates a greeting message in various languages based on the user's name and chosen language.

Features

  • Greet in 10 different languages
  • Use command-line arguments to specify name and language
  • Fallback to English if the specified language is not supported

Usage

The program accepts two arguments:

  • -n, --name <NAME>: The name of the person to greet
  • -l, --language <LANGUAGE>: The language code for the greeting

Example:

welcomer --n taro --l ja

Supported Languages

  • en: English
  • ja: Japanese
  • zh: Chinese
  • es: Spanish
  • fr: French
  • de: German
  • it: Italian
  • ru: Russian
  • ko: Korean
  • zu: Zulu
  • pt: Portugal

If an unsupported language code is specified, the program will default to an English greeting.

Dependencies

This program uses the clap crate for parsing command-line arguments.

Version

Current version: 0.1.4

Dependencies

~1.1–1.7MB
~31K SLoC