feat: auto build and release
All checks were successful
continuous-integration/drone/tag Build is passing
All checks were successful
continuous-integration/drone/tag Build is passing
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user