You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
699 B
28 lines
699 B
package main
|
|
|
|
import (
|
|
"flag"
|
|
)
|
|
|
|
var optionDiff = flag.Bool("execute-diff", true, "Specifies if a new (expensive) differential should be run")
|
|
var optionDenorm = flag.Bool("denormalize-data", true, "Specifies if existing historical data should be denormalized into viewable tables in DataStudio")
|
|
var optionReport = flag.Bool("generate-report", true, "Specifies if denormalized tables should be exported to the output directory as CSV's")
|
|
|
|
type enabledOperations struct {
|
|
Diff bool
|
|
Denorm bool
|
|
Report bool
|
|
}
|
|
|
|
func getEnabledOperations() enabledOperations {
|
|
return enabledOperations{
|
|
Diff: *optionDiff,
|
|
Denorm: *optionDenorm,
|
|
Report: *optionReport,
|
|
}
|
|
}
|
|
|
|
func init() {
|
|
flag.Parse()
|
|
}
|