Documentation ¶
Index ¶
- func Execute()
- func PrintBalances(accountList []*ledger.Account, printZeroBalances bool, depth, columns int)
- func PrintLedger(generalLedger []*ledger.Transaction, filterArr []string, columns int)
- func PrintRegister(generalLedger []*ledger.Transaction, filterArr []string, columns int)
- func PrintStats(generalLedger []*ledger.Transaction)
- func PrintTransaction(trans *ledger.Transaction, columns int)
- func WriteTransaction(w io.Writer, trans *ledger.Transaction, columns int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func PrintBalances ¶
PrintBalances prints out account balances formatted to a window set to a width of columns. Only shows accounts with names less than or equal to the given depth.
func PrintLedger ¶
PrintLedger prints all transactions as a formatted ledger file.
func PrintRegister ¶
PrintRegister prints each transaction that matches the given filters.
func PrintStats ¶
func PrintStats(generalLedger []*ledger.Transaction)
func PrintTransaction ¶
func PrintTransaction(trans *ledger.Transaction, columns int)
PrintTransaction prints a transaction formatted to fit in specified column width.
func WriteTransaction ¶
WriteTransaction writes a transaction formatted to fit in specified column width.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.