welcomer

Crates.iowelcomer
lib.rswelcomer
version0.1.4
sourcesrc
created_at2024-07-30 09:54:58.416177
updated_at2024-09-21 04:45:01.601374
descriptionThis is a simple CLI program to say hello in different languages.
homepage
repositoryhttps://github.com/TaroYamada1997/welcomer
max_upload_size
id1319623
size9,643
Shota (TaroYamada1997)

documentation

README

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

Commit count: 13

cargo fmt