[][src]Module mrf::subcommands::utils

Functions

items_from_opt

If items contain a single string "-", read items from stdin, otherwise return as-is.

read_items_from_stdin

Read items from stdin, one item per line.

replace_items

Apply replacer to each item.

replacement_previews

Return a formatted preview of replacements, useful for confirmation with user.

resolve_replacements

Resolve replacements by parsing elements from replacement and applying replacer to each item.

setup_rayon

Setup rayon (initialize threadpools according to concurrency).