8000 GitHub - adam-gaia/authors: Print and format authors from ["name <email>"] lists
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Print and format authors from ["name <email>"] lists

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

adam-gaia/authors

Repository files navigation

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

About

Print and format authors from ["name <email>"] lists

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0