Documentation ¶
Index ¶
- Constants
- func AccountTypeForString(s string) (t AccountType)
- func CmdAccountAdd(c *cli.Context) error
- func CmdAccountEdit(c *cli.Context) error
- func CmdAccountList(c *cli.Context) error
- func CmdAccountRemove(c *cli.Context) error
- func CmdBudgetAdd(c *cli.Context) error
- func CmdBudgetEdit(c *cli.Context) error
- func CmdBudgetList(c *cli.Context) error
- func CmdBudgetRemove(c *cli.Context) error
- func CmdCategoryAdd(c *cli.Context) error
- func CmdCategoryEdit(c *cli.Context) error
- func CmdCategoryList(c *cli.Context) error
- func CmdCategoryRemove(c *cli.Context) error
- func CmdCompoundInternalCostAdd(c *cli.Context) error
- func CmdCompoundTransactionSplit(c *cli.Context) error
- func CmdCompoundTransferAdd(c *cli.Context) error
- func CmdCreateNewDataFile(c *cli.Context) error
- func CmdExchangeRateAdd(c *cli.Context) error
- func CmdExchangeRateEdit(c *cli.Context) error
- func CmdExchangeRateList(c *cli.Context) error
- func CmdExchangeRateRemove(c *cli.Context) error
- func CmdMainCategoryAdd(c *cli.Context) error
- func CmdMainCategoryEdit(c *cli.Context) error
- func CmdMainCategoryList(c *cli.Context) error
- func CmdMainCategoryRemove(c *cli.Context) error
- func CmdTransactionAdd(c *cli.Context) error
- func CmdTransactionEdit(c *cli.Context) error
- func CmdTransactionList(c *cli.Context) error
- func CmdTransactionRemove(c *cli.Context) error
- func DFSForID(l int) string
- func DFSForRates(l int) string
- func DFSForText(l int) string
- func DFSForValue(l int) string
- func GetLoggers() (messageLogger *log.Logger, errorLogger *log.Logger)
- func HFSForNumeric(l int) string
- func HFSForText(l int) string
- func LineFor(fs ...string) string
- func MaxLen(s string, i int) int
- func RepAccountBalance(c *cli.Context) error
- func RepAssetsSummary(c *cli.Context) error
- func RepBudgetCategories(c *cli.Context) error
- func RepBudgetMainCategories(c *cli.Context) error
- func RepCategoryBalance(c *cli.Context) error
- func RepCategoryBalanceMonthly(c *cli.Context) error
- func RepCategoryBalanceYearly(c *cli.Context) error
- func RepIncomeVsCostMonthly(c *cli.Context) error
- func RepIncomeVsCostYearly(c *cli.Context) error
- func RepMainCategoryBalance(c *cli.Context) error
- func RepMainCategoryBalanceMonthly(c *cli.Context) error
- func RepMainCategoryBalanceYearly(c *cli.Context) error
- func RepNetValueMonthly(c *cli.Context) error
- func RepTransactionBalance(c *cli.Context) error
Constants ¶
const ( FSSeparator = " " NullDataValue = "-" )
Settings
const ( HCId = "ID" HCName = "CATEGORY" HMCId = "ID" HMCType = "TYPE" HMCName = "MAINCAT" HMCStatus = "STATUS" HCurF = "CUR_FR" HCurT = "CUR_TO" HCurRate = "EX.RATE" HAId = "ID" HAName = "ACCOUNT" HADescription = "DESCRIPTION" HAInstitution = "BANK" HACurrency = "CUR" HAType = "TYPE" HAStatus = "STATUS" HTId = "ID" HTDate = "DATE" HTValue = "VALUE" HTDescription = "DESCRIPTION" HBPeriod = "PERIOD" HBLimit = "LIMIT" HBCurrency = "CUR" HBDifference = "DIFFERENCE" HIncome = "INCOME" HCost = "COST" HDifference = "DIFFERENCE" HNV = "NET VALUE" )
Headings for displaying data and reports
const ( CmdInit = "init" CmdInitAlias = "I" CmdAdd = "add" CmdAddAlias = "A" CmdEdit = "edit" CmdEditAlias = "E" CmdRemove = "delete" CmdRemoveAlias = "D" CmdList = "list" CmdListAlias = "L" CmdReport = "report" CmdReportAlias = "R" OptFile = "file" OptFileAlias = "f" OptAll = "all" OptMainCategoryType = "main-category-type" OptMainCategoryTypeAlias = "o" OptID = "id" OptIDAlias = "i" OptCurrency = "currency" OptCurrencyAlias = "j" OptCurrencyTo = "currency-to" OptCurrencyToAlias = "k" OptDescription = "description" OptDescriptionAlias = "s" OptInstitution = "bank" OptInstitutionAlias = "b" OptAccountTo = "account-to" OptCategorySplit = "split-category" OptCategorySplitAlias = "x" OptAccountType = "accout-type" OptAccountTypeAlias = "p" OptValue = "value" OptValueAlias = "v" OptDate = "date" OptDateAlias = "d" OptDateFrom = "date-from" OptDateTo = "date-to" OptPeriod = "period" OptPeriodAlias = "e" ObjAccount = "account" ObjAccountAlias = "a" ObjCategory = "category" ObjCategoryAlias = "c" ObjMainCategory = "main_category" ObjMainCategoryAlias = "m" ObjExchangeRate = "rate" ObjExchangeRateAlias = "r" ObjTransaction = "transaction" ObjTransactionAlias = "t" ObjBudget = "budget" ObjBudgetAlias = "b" ObjCompoundTransfer = "transfer" ObjCompoundTransferAlias = "T" ObjCompoundInternalCost = "internal-cost" ObjCompoundInternalCostAlias = "C" ObjCompoundTransactionSplit = "transaction-split" ObjCompoundTransactionSplitAlias = "S" ObjReportAccountBalance = "account-balance" ObjReportAccountBalanceAlias = "ab" ObjReportBudgetCategories = "budget-categories" ObjReportBudgetCategoriesAlias = "bc" ObjReportBudgetMainCategories = "budget-main-categories" ObjReportBudgetMainCategoriesAlias = "bmc" ObjReportTransactionBalance = "transaction-balance" ObjReportTransactionBalanceAlias = "tb" ObjReportCategoryBalance = "category-balance" ObjReportCategoryBalanceAlias = "cb" ObjReportCategoryBalanceMonthly = "category-balance-monthly" ObjReportCategoryBalanceMonthlyAlias = "cbm" ObjReportCategoryBalanceYearly = "category-balance-yearly" ObjReportCategoryBalanceYearlyAlias = "cby" ObjReportMainCategoryBalance = "main-category-balance" ObjReportMainCategoryBalanceAlias = "mcb" ObjReportMainCategoryBalanceMonthly = "main-category-balance-monthly" ObjReportMainCategoryBalanceMonthlyAlias = "mcbm" ObjReportMainCategoryBalanceYearly = "main-category-balance-yearly" ObjReportMainCategoryBalanceYearlyAlias = "mcby" ObjReportAssetsSummary = "assets-summary" ObjReportAssetsSummaryAlias = "as" ObjReportNetValueMonthly = "net-value" ObjReportNetValueMonthlyAlias = "nv" ObjReportIncomeVsCostMonthly = "income-cost-monthly" ObjReportIncomeVsCostMonthlyAlias = "icm" ObjReportIncomeVsCostYearly = "income-cost-yearly" ObjReportIncomeVsCostYearlyAlias = "icy" )
Commands, objects and options
Variables ¶
This section is empty.
Functions ¶
func AccountTypeForString ¶
func AccountTypeForString(s string) (t AccountType)
accountTypeForString returns account type for given string
func CmdAccountEdit ¶
CmdAccountEdit updates account with new values
func CmdAccountList ¶
CmdAccountList lists account fitting given criteria
func CmdAccountRemove ¶
CmdAccountRemove removes account with given id
func CmdBudgetEdit ¶
CmdBudgetEdit updates budget with new values
func CmdBudgetList ¶
CmdBudgetList prints budgets on standard output
func CmdCategoryEdit ¶
CmdCategoryEdit updates category with new values
func CmdCategoryList ¶
CmdCategoryList prints categories on standard output
func CmdCategoryRemove ¶
CmdCategoryRemove sets category status to ISClose
func CmdCompoundInternalCostAdd ¶
CmdCompoundInternalCostAdd adds two transactions: cost in first account and non-budgetable category 'Transfer' into the other
func CmdCompoundTransactionSplit ¶
CmdCompoundTransactionSplit adds two transactions for two different categories with half of the original value
func CmdCompoundTransferAdd ¶
CmdCompoundTransferAdd adds two transactions with non-budgetable category 'Transfer'
func CmdCreateNewDataFile ¶
CmdCreateNewDataFile creates a new sqlite file and tables for financoj
func CmdExchangeRateAdd ¶
CmdExchangeRateAdd adds new currency exchange rate
func CmdExchangeRateEdit ¶
CmdExchangeRateEdit edits currency exchange rate
func CmdExchangeRateList ¶
CmdExchangeRateList lists currency exchange rates
func CmdExchangeRateRemove ¶
CmdExchangeRateRemove removes exchange rates for given currencies
func CmdMainCategoryAdd ¶
CmdMainCategoryAdd adds new main category
func CmdMainCategoryEdit ¶
CmdMainCategoryEdit updates main category with new values
func CmdMainCategoryList ¶
CmdMainCategoryList prints main categories on standard output
func CmdMainCategoryRemove ¶
CmdMainCategoryRemove sets main category status to ISClose
func CmdTransactionAdd ¶
CmdTransactionAdd adds new transaction
func CmdTransactionEdit ¶
CmdTransactionEdit updates transaction with new values
func CmdTransactionList ¶
CmdTransactionList prints transactions on standard output
func CmdTransactionRemove ¶
CmdTransactionRemove removes transaction with given id
func DFSForRates ¶
getDFSForRates return data formatting string for rates
func DFSForText ¶
getDFSForText return data formatting string for string
func DFSForValue ¶
getDFSForValue return data formatting string for values
func GetLoggers ¶
GetLoggers returns two loggers for standard formatting of messages and errors
func HFSForNumeric ¶
getHFSForNumeric return heading formatting string for numeric values
func HFSForText ¶
getHFSForText return heading formatting string for string values
func RepAccountBalance ¶
func RepAssetsSummary ¶
func RepBudgetCategories ¶
func RepBudgetMainCategories ¶
func RepCategoryBalance ¶
func RepIncomeVsCostMonthly ¶
func RepIncomeVsCostYearly ¶
func RepMainCategoryBalance ¶
func RepNetValueMonthly ¶
func RepTransactionBalance ¶
Types ¶
This section is empty.