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

# shellcheck source=/dev/null
source lib/loader

recfile=$(load_recit)

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