This commit is contained in:
2021-10-29 10:09:55 -05:00
parent d105e88992
commit 2116778276
10 changed files with 47 additions and 44 deletions

17
main.go
View File

@@ -2,14 +2,10 @@ package main
import (
"flag"
"log"
)
"fmt"
func checkErr(err error) {
if err != nil {
log.Fatal(err)
}
}
"github.com/robviren/xl/runner"
)
func main() {
var (
@@ -23,11 +19,12 @@ func main() {
flag.IntVar(&month, "month", 0, "Sets the month for the data to process")
flag.Parse()
run := NewRunner()
run := runner.NewRunner()
if excel_file != "" {
ProcessExcel(excel_file)
run.ProcessExcel(excel_file)
} else if get_top {
run.GetTop()
data := run.GetTop()
fmt.Println(data)
} else {
flag.PrintDefaults()
}