#markdown #front-matter #filtering #search #cli #displaying #results

bin+lib quocktail

Rust CLI for searching through nested directories of markdown files with frontmatter, filtering and displaying the results

7 releases

0.1.6 Mar 17, 2024
0.1.5 Feb 18, 2024

#465 in Filesystem

33 downloads per month

GPL-3.0-or-later

30KB
416 lines

Usage: quocktail [OPTIONS] <PATH>

Arguments:
  <PATH>

Options:
      --color <COLOR>      Should the output be colored? [default: auto] [possible values: always, auto, never]
  -q, --query <QUERY>      Queries in the form `key=value`, or just `key` e.g. `-Q garnish` matches anything with a garnish e.g. `-Q base=vodka` matches anything with a vodka base
  -n, --exclude <EXCLUDE>  Negative queries in the form `key=value`, or just `key` e.g. `-N garnish` excludes anything with a garnish e.g. `-N base=vodka` excludes anything with a vodka base
  -c, --count <COUNT>      If specified, limit the output to this number of recipes, randomly chosen
  -h, --help               Print help

lib.rs:

Quocktail is a CLI for searching yaml frontmatter in markdown files.

Yada yada yada.

Dependencies

~7–17MB
~197K SLoC