Documentation
¶
Index ¶
- Constants
- Variables
- func Accounts(parsed parser.ParsedCmdLine, config config.Config, cashDb db.DBTX) error
- func Add(parsed parser.ParsedCmdLine, config config.Config, cashDb db.DBTX) error
- func Backup(parsed parser.ParsedCmdLine, cfg config.Config, _ db.DBTX) error
- func Balance(parsed parser.ParsedCmdLine, cfg config.Config, query db.DBTX) error
- func Budget(parsed parser.ParsedCmdLine, _ config.Config, query db.DBTX) error
- func By(parsed parser.ParsedCmdLine, _ config.Config, query db.DBTX) error
- func Categories(parsed parser.ParsedCmdLine, config config.Config, cashDb db.DBTX) error
- func Config(parsed parser.ParsedCmdLine, _ config.Config, cashDb db.DBTX) error
- func Delete(parsed parser.ParsedCmdLine, cfg config.Config, query db.DBTX) error
- func Dispatch(parsed parser.ParsedCmdLine, cfg config.Config, tx db.DBTX) error
- func Fakeit(parsed parser.ParsedCmdLine, cfg config.Config, cashDb db.DBTX) error
- func FormatBudgetDemo(parsed parser.ParsedCmdLine) string
- func Group(parsed parser.ParsedCmdLine, _ config.Config, cashDb db.DBTX) error
- func Groups(parsed parser.ParsedCmdLine, _ config.Config, cashDb db.DBTX) error
- func Help(parsed parser.ParsedCmdLine, config config.Config, db db.DBTX) error
- func Import(parsed parser.ParsedCmdLine, cfg config.Config, query db.DBTX) error
- func Init(parsed parser.ParsedCmdLine, _ config.Config, query db.DBTX) error
- func List(parsed parser.ParsedCmdLine, config config.Config, cashDb db.DBTX) error
- func Modify(parsed parser.ParsedCmdLine, cfg config.Config, cashDb db.DBTX) error
- func ModifyAccount(parsed parser.ParsedCmdLine, cfg config.Config, cashDb db.DBTX) error
- func ModifyTransactions(parsed parser.ParsedCmdLine, cfg config.Config, cashDb db.DBTX) error
- func Places(parsed parser.ParsedCmdLine, _ config.Config, cashDb db.DBTX) error
- func Purge(parsed parser.ParsedCmdLine, _ config.Config, query db.DBTX) error
- func Report(parsed parser.ParsedCmdLine, _ config.Config, query db.DBTX) error
- func Restore(parsed parser.ParsedCmdLine, cfg config.Config, query db.DBTX) error
- func SetBalance(parsed parser.ParsedCmdLine, _ config.Config, query db.DBTX) error
- func Show(parsed parser.ParsedCmdLine, cfg config.Config, query db.DBTX) error
- func Stats(parsed parser.ParsedCmdLine, _ config.Config, query db.DBTX) error
- func Sum(parsed parser.ParsedCmdLine, _ config.Config, query db.DBTX) error
- func Summary(parsed parser.ParsedCmdLine, cfg config.Config, cashDb db.DBTX) error
- func Tags(parsed parser.ParsedCmdLine, _ config.Config, query db.DBTX) error
- func Theme(parsed parser.ParsedCmdLine, _ config.Config, query db.DBTX) error
- func Transfer(parsed parser.ParsedCmdLine, cfg config.Config, cashDb db.DBTX) error
- func Undo(parsed parser.ParsedCmdLine, _ config.Config, query db.DBTX) error
- type AddTransactionInput
- type CommandFunc
Constants ¶
View Source
const ( FilterUnknown = iota FilterTypeTransactionID FilterTypeAccountName FilterTypeCurrency FilterTypeInitialBalance FilterTypeStore FilterTypeDescription FilterTypeDatetime FilterTypeGroup FilterTypeIdentifier FilterTypeTag FilterTypeNegativeFlag )
Variables ¶
View Source
var CommandValidations = []func(parser.ParsedCmdLine, config.Config, db.DBTX, map[parser.ArgKind]int) (parser.ParsedCmdLine, error){
validateAmount,
}
CommandValidations List of command line validator
View Source
var Handlers = map[string]CommandFunc{ "init": Init, "add": Add, "show": Show, "categories": Categories, "stats": Stats, "group": Group, "tags": Tags, "modify": Modify, "report": Report, "list": List, "delete": Delete, "purge": Purge, "restore": Restore, "undo": Undo, "by": By, "accounts": Accounts, "balance": Balance, "fakeit": Fakeit, "transfer": Transfer, "set-balance": SetBalance, "budget": Budget, "config": Config, "backup": Backup, "import": Import, "theme": Theme, "sum": Sum, "summary": Summary, "groups": Groups, "stores": Places, "help": Help, }
Functions ¶
func Categories ¶
func FormatBudgetDemo ¶
func FormatBudgetDemo(parsed parser.ParsedCmdLine) string
func ModifyAccount ¶
func ModifyTransactions ¶
func SetBalance ¶
Types ¶
type AddTransactionInput ¶
type CommandFunc ¶
Source Files
¶
- account_filters.go
- accounts.go
- add.go
- backup.go
- balance.go
- budget.go
- by.go
- categories.go
- config.go
- delete.go
- dispatch.go
- fakeit.go
- group.go
- groups.go
- help.go
- import.go
- init.go
- list.go
- modify.go
- output.go
- places.go
- purge.go
- read_json.go
- report.go
- restore.go
- root.go
- set_balance.go
- show.go
- stats.go
- sum.go
- summary.go
- tags.go
- target.go
- theme.go
- transaction_filters.go
- transfer.go
- undo.go
Click to show internal directories.
Click to hide internal directories.