Skip to content

Commit

Permalink
Add support for providing an ExemptFile
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Apr 28, 2020
1 parent e844179 commit 88fb127
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ var (
// It can be beneficial to collect all reconciliation errors
// during development.
HaltOnReconciliationError bool

// ExemptFile is an absolute path to a file listing all accounts
// to exempt from balance tracking and reconciliation.
ExemptFile string
)

// Execute handles all invocations of the
Expand Down Expand Up @@ -154,6 +158,14 @@ func init() {
error. It can be beneficial to collect all reconciliation errors or silence
reconciliation errors during development.`,
)
rootCmd.PersistentFlags().StringVar(
&ExemptFile,
"exempt-accounts",
"",
`Absolute path to a file listing all accounts to exempt from balance
tracking and reconciliation. Look at the examples directory for an example of
how to structure this file.`,
)

rootCmd.AddCommand(checkCompleteCmd)
rootCmd.AddCommand(checkQuickCmd)
Expand Down

0 comments on commit 88fb127

Please sign in to comment.