#!/usr/bin/env bash # hlfi - reporting tool for hledger project finances # shellcheck shell=bash disable=SC2317 set -e cd "$(dirname "$0")" SCRIPT=$(basename "$0") JOURNAL=oc.journal PERIOD="quarterly from 1/1 to tomorrow" line() { echo "--------------------------------------------------------------------------------"; } help() { # show this help line cat < /dev/null; then "$@"; # arg 1 selects a function above else hledger -f "$JOURNAL" "$@"; fi # or fall through to hledger exit