diff options
author | Julio Capote <jcapote@gmail.com> | 2022-08-21 20:42:40 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2022-08-21 20:42:40 +0000 |
commit | dc63bf274983b9df8249ce050352533c27f7b41b (patch) | |
tree | f970c62b65a5032b240da2d3e87146f71c7ec709 | |
parent | d32b6f33f0d36a3e879c03f072f83aecdfab18a5 (diff) | |
download | recit-dc63bf274983b9df8249ce050352533c27f7b41b.tar.gz |
bugfix
-rw-r--r-- | README.md | 6 | ||||
-rwxr-xr-x | libexec/recit-entries | 4 |
2 files changed, 9 insertions, 1 deletions
@@ -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 |