From dc63bf274983b9df8249ce050352533c27f7b41b Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 21 Aug 2022 16:42:40 -0400 Subject: bugfix --- README.md | 6 ++++++ libexec/recit-entries | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d556ff8..e5ac7ef 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,12 @@ You can pass `-p` to `recit add-entry` to associate that entry with a project, l If you try to pass a project to `-p` that doesn't exist, you will get an error. +## View entries for a Project + +You can also pass `-p` to `recit entries` to view all entries for that project. Similarly, this will throw an error if project does not exist. + + recit entries -p "my-project" + # Schema You can view the latest schema at [share/recit/recit.example.rec](https://git.capotej.com/capotej/recit/src/branch/main/share/recit/recit.example.rec) diff --git a/libexec/recit-entries b/libexec/recit-entries index ec754a3..ed0a0e3 100755 --- a/libexec/recit-entries +++ b/libexec/recit-entries @@ -6,6 +6,8 @@ set -e project="" query_time="" +recfile=$(recit-file) + while getopts "p:t:" options; do case "${options}" in @@ -48,7 +50,7 @@ if ! [[ "$project" = "" ]]; then fi else echo "$project not found, list of available projects:" - recsel -t Project -p Id ${recfile} + recit-recsel-projects exit 1 fi fi -- cgit v1.2.3