feat: auto build and release
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
2026-07-19 20:37:21 +08:00
parent dcdb54b76c
commit fcaef77aea
2 changed files with 55 additions and 0 deletions

View File

@ -59,11 +59,17 @@ func newManagers(configFile, outputFile, subscriptionName string) (*managers, er
}, nil
}
// Version is the ss build version, injected at build time via
// -ldflags "-X gitea.epss.net.cn/klesh/ss/internal/cli.Version=vX.Y.Z"
// (see .drone.yml). Defaults to "dev" for local/unversioned builds.
var Version = "dev"
// Execute runs the ss CLI. It is the Go equivalent of cli.py's main().
func Execute() {
root := &cobra.Command{
Use: "ss",
Short: "Scientific Surfing - CLI for managing clash RSS subscriptions",
Version: Version,
SilenceUsage: true,
SilenceErrors: true,
}