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