Initial commit

This commit is contained in:
2025-10-26 16:22:50 +01:00
commit 4d6c354436
12 changed files with 1193 additions and 0 deletions

32
main.go Normal file
View 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)
})
}