More func

This commit is contained in:
2021-10-28 12:59:01 -05:00
parent 5092c10859
commit d105e88992
9 changed files with 102 additions and 25 deletions

View File

@@ -14,12 +14,21 @@ func checkErr(err error) {
func main() {
var (
excel_file string
get_top bool
month int
)
flag.StringVar(&excel_file, "file", "", "The path to the excel file for processing")
flag.BoolVar(&get_top, "get_top", false, "A command to get the top performers for the current month")
flag.IntVar(&month, "month", 0, "Sets the month for the data to process")
flag.Parse()
run := NewRunner()
if excel_file != "" {
ProcessExcel(excel_file)
} else if get_top {
run.GetTop()
} else {
flag.PrintDefaults()
}
}