2020-01-19 02:11:53 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2020-02-07 23:51:17 +00:00
|
|
|
config "./models/config"
|
2020-01-21 21:46:30 +00:00
|
|
|
workflows "./workflows"
|
2020-01-19 02:11:53 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2020-02-07 23:51:17 +00:00
|
|
|
config.GetConfig()
|
|
|
|
url := config.Config.URL
|
|
|
|
batchFilePath := config.Config.BatchFilePath
|
2020-01-24 17:02:50 +00:00
|
|
|
|
|
|
|
// Batch file
|
|
|
|
if workflows.CanUseDownloadBatchFile(batchFilePath) {
|
|
|
|
workflows.DownloadBatchFile(batchFilePath)
|
|
|
|
return
|
|
|
|
}
|
2020-01-19 02:11:53 +00:00
|
|
|
|
2020-01-26 17:44:25 +00:00
|
|
|
workflows.StartWorkflowByParameter(url)
|
2020-01-19 02:11:53 +00:00
|
|
|
}
|