config

package
v0.0.0-...-737f61f Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Maps from posting account name to matches
	PostingAccount map[string][]Replace
}

Config encapsulates replacements for each posting account

func ParseYamlConfig

func ParseYamlConfig(file string) (config *Config, err error)

ParseYamlConfig reads a configuration from a yaml file

type Replace

type Replace struct {
	// Treat it as a match if we see this as a substring in a comment
	Comment string
	// Change the payee to this
	Payee string
	// Treated as a go template.  We replace the posting that is
	// associated with the account with this posting or postings.
	Posting string
}

Replace describes a comment substring match and the associated transformations if the transaction matches.

Jump to

Keyboard shortcuts

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