sources

package
v0.0.0-...-5a71971 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func AddChaseSource

func AddChaseSource(args []string) ([]command.Output, error)

func AddVenmoSource

func AddVenmoSource(args []string) ([]command.Output, error)

func EditChaseSource

func EditChaseSource(args []string) ([]command.Output, error)

func EditVenmoSource

func EditVenmoSource(args []string) ([]command.Output, error)

func ListSources

func ListSources(args []string) ([]command.Output, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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