#!/usr/bin/env bash # docker-finance | modern accounting for the power-user # # Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # docker-finance @DOCKER_FINANCE_VERSION@ # # Subscript (subprofile script) called by superscript # [ -z "$DOCKER_FINANCE_CONTAINER_CMD" ] && echo "DOCKER_FINANCE_CONTAINER_CMD not set, check installation" >&2 # See `help` for all available commands and usage dfi_base_cmd='$DOCKER_FINANCE_CONTAINER_CMD @DOCKER_FINANCE_PROFILE@/@DOCKER_FINANCE_SUBPROFILE@' # # Notes: # # - This file is most useful for single-user or multiple # non-conflicting subprofile names. # # * To avoid naming conflicts, see the example below to create a # parent prepended profile "namespace". # # - See `edit type=hledger` for customizable hledger options that # you'd otherwise apply to all of the subprofile's hledger commands. # alias @DOCKER_FINANCE_SUBPROFILE@_bal='$dfi_base_cmd hledger bal \ assets liabilities \ ' ## Example: the previous command but with a prepended parent profile "namespace" #alias @DOCKER_FINANCE_PROFILE@_@DOCKER_FINANCE_SUBPROFILE@_bal='$dfi_base_cmd hledger bal \ # assets liabilities \ #' ## Example: fetch all prices for default (current) year #alias @DOCKER_FINANCE_SUBPROFILE@_prices='$dfi_base_cmd fetch all=price' ## Example: print tagged income on all accounts in CSV tax format for default (current) year #alias @DOCKER_FINANCE_SUBPROFILE@_income_tax='$dfi_base_cmd taxes all=account tag=income write=off' ## Example: write income statements and balance sheets, quarterly & monthly for default (current) year #alias @DOCKER_FINANCE_SUBPROFILE@_qm_reports='$dfi_base_cmd reports type=is,bs interval=quarterly,monthly' ## Examples: uncomment and customize, as needed #alias @DOCKER_FINANCE_SUBPROFILE@_all='$dfi_base_cmd all' #alias @DOCKER_FINANCE_SUBPROFILE@_edit='$dfi_base_cmd edit' #alias @DOCKER_FINANCE_SUBPROFILE@_fetch='$dfi_base_cmd fetch' #alias @DOCKER_FINANCE_SUBPROFILE@_hledger='$dfi_base_cmd hledger' #alias @DOCKER_FINANCE_SUBPROFILE@_import='$dfi_base_cmd import' #alias @DOCKER_FINANCE_SUBPROFILE@_meta='$dfi_base_cmd meta' #alias @DOCKER_FINANCE_SUBPROFILE@_plugins='$dfi_base_cmd plugins' #alias @DOCKER_FINANCE_SUBPROFILE@_reports='$dfi_base_cmd reports' #alias @DOCKER_FINANCE_SUBPROFILE@_root='$dfi_base_cmd root' #alias @DOCKER_FINANCE_SUBPROFILE@_taxes='$dfi_base_cmd taxes' #alias @DOCKER_FINANCE_SUBPROFILE@_times='$dfi_base_cmd times' #alias @DOCKER_FINANCE_SUBPROFILE@_ui='$dfi_base_cmd hledger-ui' #alias @DOCKER_FINANCE_SUBPROFILE@_vui='$dfi_base_cmd hledger-vui' #alias @DOCKER_FINANCE_SUBPROFILE@_web='$dfi_base_cmd hledger-web' # vim: syn=bash sw=2 sts=2 si ai et