Files
transfer-site/cmd/server/main.go
zhilv 8265df0dcd feat: 初始提交 - Code Server Bridge完整实现
- OAuth认证系统(Gitea + Lua扩展)
- Git自动化操作(本地/SSH远程)
- 实时进度WebSocket推送
- 现代化Tab界面UI
- Cobra CLI命令行(init/version/serve)
- 完整构建系统(Makefile + Taskfile)
- UPX压缩支持(体积减少70%)
2026-01-08 23:32:29 +08:00

26 lines
414 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package main
import (
"cs-bridge/cmd/server/cmd"
"fmt"
)
// 版本信息编译时通过ldflags注入
var (
Version = "dev"
BuildTime = "unknown"
GitCommit = "unknown"
)
func main() {
// 设置版本信息到cmd包
cmd.Version = Version
cmd.BuildTime = BuildTime
cmd.GitCommit = GitCommit
// 启动信息
fmt.Printf("🚀 启动 code-server-bridge v%s by zhilv666\n", Version)
cmd.Execute()
}