diff options
| -rwxr-xr-x | harvester | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -56,6 +56,15 @@ function hcl_log () { hcl log "$date" "@${project}" "$time" "$description" } +function list_modules () { + local project="$1" + + local project_id=$(grep "$project" $HOME/.hcl/settings.yml | + cut -d ' ' -f 2) + + hcl tasks | grep "^${project_id}" +} + function main () { local project='' local time='7' @@ -113,8 +122,9 @@ function main () { continue ;; --list-modules) - shift - continue + list_modules "$project" + + return 0 ;; --help) print_usage |
