ydt 0.4.0

A simple command-line dictionary tool powered by Youdao
Documentation

ydt

A simple Youdao dict tool.

Installation

Install ydt with Cargo:

cargo install ydt

Or use the following Nix command to install and run directly:

nix run . -- <WORD>

Usage

To use the ydt for looking up a word, use the following command:

ydt <WORD>

Library

ydt can also be used as a library:

match ydt::get_translation("hello") {
    Ok(text) => println!("{text}"),
    Err(err) => eprintln!("{err}"),
}