slang-cli

Crates.ioslang-cli
lib.rsslang-cli
version0.2.0
sourcesrc
created_at2021-12-27 20:57:52.356511
updated_at2021-12-27 20:57:52.356511
descriptionAcronym search CLI
homepage
repository
max_upload_size
id503875
size43,687
Martijn Swaagman (Swaagie)

documentation

README

Slang CLI

Acronym lookup Command Line Interface tool.

Install

cargo install slang-cli

Configuration

Create a .slang.toml in your home folder with custom JSON sources. By default NASA and triathlon acronyms are configured.

[sources]
IT="https://raw.githubusercontent.com/url/to/your/list/of/acronyms.json"

The JSON format of an acronym is defined as:

{
	acronym_id: Option<u32>
	abbreviation: String
	expansion: String
}

Usage

Search all configured sources:

slang [FLAGS] [OPTIONS] <acronym>

To filter for specific context or jargon:

slang --context NASA <acronym>

Example:

slang --context NASA RPM

Found the following expansions:

✅ Context NASA: Random Predictors Mode
Commit count: 0

cargo fmt