authors

Crates.ioauthors
lib.rsauthors
version1.0.0
created_at2026-01-12 16:49:08.94675+00
updated_at2026-01-12 16:49:08.94675+00
descriptionPrint and format authors from ["name "] lists
homepagehttps://github.com/adam-gaia/authors
repositoryhttps://github.com/adam-gaia/authors
max_upload_size
id2038183
size50,811
Adam Gaia (adam-gaia)

documentation

README

authors

Print and format authors from ["name "] lists

Motivation

This utility is meant to be used in a pipeline with toml-path, for extracting only the names of authors without the emails

$ toml-path --raw-output .package.authors Cargo.toml | authors --names
Adam Gaia

Usage

  • Without any flags, this utility is redundant
$ authors "foo <foo@bar.com>, foo2 <foo2@bar.com>"
foo <foo@bar.com>, foo2 <foo2@bar.com>

  • Print names only
$ authors --names "foo <foo@bar.com>, foo2 <foo2@bar.com>"
foo, foo2

  • Print emails only
$ authors --emails "foo <foo@bar.com>, foo2 <foo2@bar.com>"
foo@bar.com, foo2@bar.com

  • Piping to stdin instead of proving an input argument works too
$ echo "foo <foo@bar.com>, foo2 <foo2@bar.com>" | authors --names
foo, foo2

Commit count: 14

cargo fmt