1 unstable release
0.2.0 | Dec 27, 2021 |
---|
#6 in #slang
13KB
127 lines
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
Dependencies
~11–26MB
~338K SLoC