cmd

package
v0.0.0-...-9d2b2c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 RenderBudgetsListText(budgets service.Budgets)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL