Documentation ¶
Index ¶
- Variables
- func Execute()
- func RenderBudgetsListText(budgets service.Budgets)
- func RenderReport(balance float64, report map[string]ReportBudget)
- func RenderReportWithTransactions(report map[string]ReportBudget)
- func RenderShowTransaction(tx *service.Transaction)
- func RenderTransactionListText(transactions []*service.Transaction)
- type ReportBudget
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "ruin",
Short: "Generates budget data from ofx files",
}
RootCmd represents the base command when called without any subcommands
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func RenderBudgetsListText ¶
func RenderReport ¶
func RenderReport(balance float64, report map[string]ReportBudget)
func RenderReportWithTransactions ¶
func RenderReportWithTransactions(report map[string]ReportBudget)
func RenderShowTransaction ¶
func RenderShowTransaction(tx *service.Transaction)
func RenderTransactionListText ¶
func RenderTransactionListText(transactions []*service.Transaction)
Types ¶
type ReportBudget ¶
type ReportBudget struct { Category string Value float64 Transactions service.Transactions }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.