Documentation ¶
Index ¶
- func Execute()
- func PrintBalances(accountList []*ledger.Account, printZeroBalances bool, depth, columns int)
- func PrintCSV(generalLedger []*ledger.Transaction, filterArr []string)
- func PrintLedger(generalLedger []*ledger.Transaction, filterArr []string, columns int)
- func PrintRegister(generalLedger []*ledger.Transaction, filterArr []string, 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 PrintCSV ¶ added in v1.12.0
func PrintCSV(generalLedger []*ledger.Transaction, filterArr []string)
PrintCSV prints each transaction that matches the given filters in CSV format
func PrintLedger ¶
func PrintLedger(generalLedger []*ledger.Transaction, filterArr []string, columns int)
PrintLedger prints all transactions as a formatted ledger file.
func PrintRegister ¶
func PrintRegister(generalLedger []*ledger.Transaction, filterArr []string, columns int)
PrintRegister prints each transaction that matches the given filters.
func WriteTransaction ¶
func WriteTransaction(w io.Writer, trans *ledger.Transaction, columns int)
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.