aboutsummaryrefslogtreecommitdiff
path: root/libexec/recit-recsel-entries
blob: e4477126ab475e272fef1f1e66ac708ebe47c4ba (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
set -e

recfile=$(recit-file)

if [[ "$1" = "" ]]; then
  out=$(recsel -t Entry "$recfile" | recfmt -f "$_RECIT_ROOT/share/recit/templates/entries.templ")
else
  out=$(recsel -t Entry "$recfile" -e "$1" | recfmt -f "$_RECIT_ROOT/share/recit/templates/entries.templ")
fi
echo -e "$out"