cmd

package
v1.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: ISC Imports: 39 Imported by: 0

Documentation

Index

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

func PrintBalances(accountList []*ledger.Account, printZeroBalances bool, depth, columns int)

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.

Directories

Path Synopsis
internal
pdr
Package pdr parses date range as string Uses pointlander/peg
Package pdr parses date range as string Uses pointlander/peg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL