Documentation
¶
Overview ¶
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AddKeywordCommand = &command.Command{ Name: "add keyword", Short: "add comma-separated keywords to label", ExpectedArgs: []command.Argument{ {Name: "Label (new or existing)", AutoComplete: autoCompleteLabel}, {Name: "Keywords (Comma-separated)"}, }, Run: AddLabelKeyword, } )
View Source
var ( CheckCommand = &command.Command{ Name: "check", Short: "check label keywords", ExpectedArgs: []command.Argument{ {Name: "Label", AutoComplete: autoCompleteLabel}, }, Run: CheckLabel, } )
View Source
var ( LabelCmd = &command.Command{ Name: "label", Short: "Manage labels", Long: `go-ledger can automatically classify transactions using labels you define. You can set a list of keywords for a given label, and transactions with any of those keywords will be assigned that label.`, SubCommands: []*command.Command{ ListCommand, CheckCommand, AddKeywordCommand, RemoveKeywordCommand, }, } )
View Source
var ( ListCommand = &command.Command{ Name: "list", Short: "list existing labels", Run: ListLabels, } )
View Source
var ( RemoveKeywordCommand = &command.Command{ Name: "remove keywords", Short: "remove comma-separated keywords from label", ExpectedArgs: []command.Argument{ {Name: "Label", AutoComplete: autoCompleteLabel}, {Name: "Keywords (Comma-separated)"}, {Name: "Delete Label", Type: command.BoolArg}, }, Run: RemoveLabelKeyword, } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.