#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

#1278 in Filesystem

Download history 21/week @ 2024-07-28 25/week @ 2024-09-22

469 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

~8–16MB
~202K SLoC