aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rwxr-xr-xlibexec/recit-entries4
2 files changed, 9 insertions, 1 deletions
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