Files
subconverter-go/main.go
Rogee 7fcabe0225
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
first commit
2025-09-28 10:05:07 +08:00

28 lines
543 B
Go

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()
}