tiktok-dl/main.go
Pijus Kamandulis 1b3f985f42 Improved status output
Added `-quiet` flag

Move out error messages to separate file
2020-02-08 02:52:26 +02:00

21 lines
355 B
Go

package main
import (
config "./models/config"
workflows "./workflows"
)
func main() {
config.GetConfig()
url := config.Config.URL
batchFilePath := config.Config.BatchFilePath
// Batch file
if workflows.CanUseDownloadBatchFile(batchFilePath) {
workflows.DownloadBatchFile(batchFilePath)
return
}
workflows.StartWorkflowByParameter(url)
}