Print and format authors from ["name "] lists
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- Without any flags, this utility is redundant
$ authors "foo <[email protected]>, foo2 <[email protected]>"
foo <[email protected]>, foo2 <[email protected]>
- Print names only
$ authors --names "foo <[email protected]>, foo2 <[email protected]>"
foo, foo2
- Print emails only
$ authors --emails "foo <[email protected]>, foo2 <[email protected]>"
[email protected], [email protected]
- Piping to stdin instead of proving an input argument works too
$ echo "foo <[email protected]>, foo2 <[email protected]>" | authors --names
foo, foo2