cmd

package
v0.0.0-stigma Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: ISC Imports: 29 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 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 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

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

Jump to

Keyboard shortcuts

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