aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-08-21 20:42:40 +0000
committerJulio Capote <jcapote@gmail.com>2022-08-21 20:42:40 +0000
commitdc63bf274983b9df8249ce050352533c27f7b41b (patch)
treef970c62b65a5032b240da2d3e87146f71c7ec709
parentd32b6f33f0d36a3e879c03f072f83aecdfab18a5 (diff)
downloadrecit-dc63bf274983b9df8249ce050352533c27f7b41b.tar.gz
bugfix
-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