first commit
Some checks failed
CI/CD Pipeline / Test (push) Failing after 22m19s
CI/CD Pipeline / Security Scan (push) Failing after 5m57s
CI/CD Pipeline / Build (amd64, darwin) (push) Has been skipped
CI/CD Pipeline / Build (amd64, linux) (push) Has been skipped
CI/CD Pipeline / Build (amd64, windows) (push) Has been skipped
CI/CD Pipeline / Build (arm64, darwin) (push) Has been skipped
CI/CD Pipeline / Build (arm64, linux) (push) Has been skipped
CI/CD Pipeline / Build Docker Image (push) Has been skipped
CI/CD Pipeline / Create Release (push) Has been skipped

This commit is contained in:
Rogee
2025-09-28 10:05:07 +08:00
commit 7fcabe0225
481 changed files with 125127 additions and 0 deletions

28
main.go Normal file
View File

@@ -0,0 +1,28 @@
package main
import (
"flag"
"log"
"github.com/subconverter-go/internal/service"
)
func main() {
// 解析命令行参数
configPath := flag.String("config", "config.yaml", "Path to configuration file")
flag.Parse()
// 创建应用程序实例
app, err := service.NewApplication(*configPath)
if err != nil {
log.Fatalf("Failed to create application: %v", err)
}
// 启动应用程序
if err := app.Start(); err != nil {
log.Fatalf("Failed to start application: %v", err)
}
// 等待关闭信号
app.WaitForShutdown()
}