acro

Crates.ioacro
lib.rsacro
version0.2.0
sourcesrc
created_at2022-12-29 09:24:00.658963
updated_at2022-12-30 07:08:52.240896
descriptionA tool to query csv files of acronyms
homepagehttps://github.com/nilventosa/acro-rs
repositoryhttps://github.com/nilventosa/acro-rs
max_upload_size
id747229
size27,517
Nil Ventosa (NilVentosa)

documentation

README

acro-rs

This was done to help me query a csv file with acronyms and their meanings. But I guess it can be used for any csv file that has two columns of which you want to use one to get the other.

Installation

With cargo

cargo install acro

With homebrew

brew tap nilventosa/acro
brew install acro

Usage

acro [OPTIONS] <acronym>

Arguments:

  • <acronym> the acronym to query

Options (short, long, env variable):

  • -f, --file, ACRO_FILE <file>
    the csv file with the acronyms and definitions
  • -a, --acro, ACRO_COLUMN <acro_column>
    the column with the acronyms [default: 1]
  • -d, --definition, DEFINITION_COLUMN <definition_column>
    the column with the definitions [default: 2]
  • -D, --delimiter, ACRO_DELIMITER <delimiter>
    delimiter character between columns [default: ',']
  • -H, --header, ACRO_HEADER
    flag if there is a header line
  • -c, --color, ACRO_COLOR
    disables color output
  • -h, --help
    Print help information
  • -V, --version
    Print version information
Commit count: 26

cargo fmt