Documentation
¶
Index ¶
- Variables
- func AddChaseSource(args []string) ([]command.Output, error)
- func AddVenmoSource(args []string) ([]command.Output, error)
- func EditChaseSource(args []string) ([]command.Output, error)
- func EditVenmoSource(args []string) ([]command.Output, error)
- func ListSources(args []string) ([]command.Output, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AddChaseCommand = &command.Command{ Name: "chase", Short: "add Chase source", ExpectedArgs: []command.Argument{ {Name: "Name"}, {Name: "Last Four Digits"}, { Name: "Account Type", Options: []command.ArgOption{ {Label: "Credit", Value: "credit"}, {Label: "Non-Credit", Value: "non-credit"}, }, Type: command.SelectArg, }, {Name: "Directories"}, }, Run: AddChaseSource, } )
View Source
var ( AddCommand = &command.Command{ Name: "add", Short: "add source", SubCommands: []*command.Command{ AddChaseCommand, AddVenmoCommand, }, } )
View Source
var ( AddVenmoCommand = &command.Command{ Name: "venmo", Short: "add Venmo source", ExpectedArgs: []command.Argument{ {Name: "Name"}, {Name: "Account Holder Name"}, { Name: "Ignore Transfers", Type: command.BoolArg, }, {Name: "Directories"}, }, Run: AddVenmoSource, } )
View Source
var ( EditChaseCommand = &command.Command{ Name: "chase", Short: "update Chase source", ExpectedArgs: []command.Argument{ {Name: "Old Name", IsConstant: true}, {Name: "New Name"}, {Name: "Last Four Digits"}, { Name: "Account Type", Options: []command.ArgOption{ {Label: "Credit", Value: "credit"}, {Label: "Non-Credit", Value: "non-credit"}, }, Type: command.SelectArg, }, {Name: "Directories"}, }, PrefillForm: true, Run: EditChaseSource, } )
View Source
var ( EditCommand = &command.Command{ Name: "edit", Short: "edit source", SubCommands: []*command.Command{ EditChaseCommand, EditVenmoCommand, }, } )
View Source
var ( EditVenmoCommand = &command.Command{ Name: "venmo", Short: "update Venmo source", ExpectedArgs: []command.Argument{ {Name: "Old Name", IsConstant: true}, {Name: "New Name"}, {Name: "Account Holder Name"}, { Name: "Ignore Transfers", Type: command.BoolArg, }, {Name: "Directories"}, }, PrefillForm: true, Run: EditVenmoSource, } )
View Source
var ( ListCommand = &command.Command{ Name: "list", Short: "list existing sources", Run: ListSources, } )
View Source
var ( SourceCmd = &command.Command{ Name: "source", Short: "Manage sources", Long: `go-ledger can pull transaction data from multiple sources`, SubCommands: []*command.Command{ ListCommand, AddCommand, EditCommand, }, } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.