Documentation ¶
Index ¶
- func CreateManualAccount(input []string) *omoney.Account
- func CreateManualTransaction(input []string) *omoney.Transaction
- func ListTransactions(input []string, model *omoney.Model, workingIndex int) []omoney.Transaction
- func LoadModelFromDB(dataDir string) (*omoney.Model, error)
- func ParseTokensToFlags(tokens []string, flagMap map[string]int) (map[string][]string, error)
- func ReadCsv(filepath string, existingAccounts map[string]string) []*omoney.Transaction
- func ShowTransactions(trs []omoney.Transaction, invert bool, workingIndex int)
- type LinkTmplData
- type Linker
- type LogLevel
- type OLogger
- type OView
- type OViewPlain
- func (v *OViewPlain) ShowAccount(acc omoney.Account)
- func (v *OViewPlain) ShowAccounts(model *omoney.Model, ops ...ShowAccountOptions)
- func (v *OViewPlain) ShowPlaidAccount(account plaid.AccountBase)
- func (v *OViewPlain) ShowPlaidAccounts(accounts []plaid.AccountBase)
- func (v *OViewPlain) ShowTransaction(tr omoney.Transaction, ops ...ShowTransactionOptions)
- type ShowAccountOptions
- type ShowTransactionOptions
- type TokenPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateManualAccount ¶
func CreateManualTransaction ¶
func CreateManualTransaction(input []string) *omoney.Transaction
func ListTransactions ¶
example input: [ls <account> -n 20 -l]
return the list of transactions printed, for the working list
func ParseTokensToFlags ¶
format of flagMap is {<flag>: <number of arguments for flag>}
func ReadCsv ¶
func ReadCsv(filepath string, existingAccounts map[string]string) []*omoney.Transaction
Given the path to a csv file, and the map existingAccounts of alias -> id, interactively parse the csv file into a slice of transaction structs
func ShowTransactions ¶
func ShowTransactions(trs []omoney.Transaction, invert bool, workingIndex int)
workingIndex: the current length of the workinglist, so that new wid's can be printed
Types ¶
type LinkTmplData ¶
type LinkTmplData struct {
LinkToken string
}
type Linker ¶
type OView ¶
type OView interface { ShowAccount(account plaid.AccountBase) ShowAccounts(accounts []plaid.AccountBase) }
type OViewPlain ¶
type OViewPlain struct {
// contains filtered or unexported fields
}
func NewOViewPlain ¶
func NewOViewPlain(enableColor bool) *OViewPlain
func (*OViewPlain) ShowAccount ¶
func (v *OViewPlain) ShowAccount(acc omoney.Account)
func (*OViewPlain) ShowAccounts ¶
func (v *OViewPlain) ShowAccounts(model *omoney.Model, ops ...ShowAccountOptions)
func (*OViewPlain) ShowPlaidAccount ¶
func (v *OViewPlain) ShowPlaidAccount(account plaid.AccountBase)
func (*OViewPlain) ShowPlaidAccounts ¶
func (v *OViewPlain) ShowPlaidAccounts(accounts []plaid.AccountBase)
func (*OViewPlain) ShowTransaction ¶
func (v *OViewPlain) ShowTransaction(tr omoney.Transaction, ops ...ShowTransactionOptions)
type ShowAccountOptions ¶
type ShowTransactionOptions ¶
Click to show internal directories.
Click to hide internal directories.