nigant

Crates.ionigant
lib.rsnigant
version0.4.1
sourcesrc
created_at2020-04-12 09:06:56.796068
updated_at2020-04-12 16:13:14.46578
descriptionA Thesaurus for the Terminal
homepage
repositoryhttps://github.com/twinair/nigant
max_upload_size
id228929
size74,483
Sujith Jay Nair (sujithjay)

documentation

README

Nigant

Rust Docs.rs Crates.io

A Thesaurus for the Terminal

Etymology

Nigant comes the Sanskrit word निघण्टु (Nighaṇṭu), meaning a glossary or a partial lexicon.

Usage

with Cargo

You can install Nigant using Cargo.

Nigant relies on the Oxford Developer API. Generate your API ID & API KEY, and place it in a nigant.ini file as NIGANT_APP_ID & NIGANT_APP_KEY.

$ cat nigant.ini
NIGANT_APP_ID=<YOUR_APP_ID>
NIGANT_APP_KEY=<YOUR_APP_KEY>

$ cargo install nigant

$ nigant <word>

by Building

You can build Nigant from source-code before use. Refer section on Building for build instructions. Generate your API ID & API KEY, and place it in a nigant.ini file as NIGANT_APP_ID & NIGANT_APP_KEY.

$ cat nigant.ini
NIGANT_APP_ID=<YOUR_APP_ID>
NIGANT_APP_KEY=<YOUR_APP_KEY>

$ ./target/release/nigant <word> 

Example

$ nigant pastiche                                                                                                 
pastiche
Definitions:
	 - an artistic work in a style that imitates that of another work, artist, or period
	 - imitate the style of (an artist or work)

Synonyms:
imitation, parody, take-off, parody, take off, burlesque, pastiche, make fun of

Etymology:
	 - late 19th century: from French, from Italian pasticcio, based on late Latin pasta‘paste’

Building

Nigant is written in Rust, so you'll need to grab a Rust installation in order to compile it. In general, Nigant tracks the latest stable release of the Rust compiler.

To build Nigant:

$ git clone https://github.com/twinair/nigant
$ cd nigant
$ cargo build --release	
Commit count: 35

cargo fmt