• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package main
2
3import (
4	"flag"
5)
6
7var optionDiff = flag.Bool("execute-diff", true, "Specifies if a new (expensive) differential should be run")
8var optionDenorm = flag.Bool("denormalize-data", true, "Specifies if existing historical data should be denormalized into viewable tables in DataStudio")
9var optionReport = flag.Bool("generate-report", true, "Specifies if denormalized tables should be exported to the output directory as CSV's")
10
11type enabledOperations struct {
12	Diff   bool
13	Denorm bool
14	Report bool
15}
16
17func getEnabledOperations() enabledOperations {
18	return enabledOperations{
19		Diff:   *optionDiff,
20		Denorm: *optionDenorm,
21		Report: *optionReport,
22	}
23}
24
25func init() {
26	flag.Parse()
27}
28