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

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

#597 in Development tools

Download history 344/week @ 2024-07-29 164/week @ 2024-09-16 15/week @ 2024-09-23 39/week @ 2024-09-30

218 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
~32K SLoC