Initial commit
This commit is contained in:
32
main.go
Normal file
32
main.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"varia-go/tasks"
|
||||
|
||||
"github.com/roemer/gotaskr"
|
||||
)
|
||||
|
||||
func main() {
|
||||
os.Exit(gotaskr.Execute())
|
||||
}
|
||||
|
||||
func init() {
|
||||
gotaskr.Task("Epic-Links", func() error {
|
||||
return (&tasks.EpicLinkTask{}).Run()
|
||||
})
|
||||
|
||||
gotaskr.Task("Create-Mega-Account", func() error {
|
||||
return (&tasks.MegaAccountTask{}).Run()
|
||||
})
|
||||
|
||||
// args: --folder=\\nas03\Dump
|
||||
gotaskr.Task("Black-Border-Analyze", func() error {
|
||||
folder, hasArg := gotaskr.GetArgument("folder")
|
||||
if !hasArg {
|
||||
return fmt.Errorf("folder argument is required")
|
||||
}
|
||||
return tasks.NewBlackBorderAnalyzeTask("blackborder.log").Run(folder)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user