1
0
mirror of https://github.com/bestnite/sub2sing-box.git synced 2026-06-09 00:12:27 +00:00

add: version cmd

add: dockerfile
This commit is contained in:
2024-03-13 00:11:34 +08:00
parent 2a6e427c4c
commit 4c2ea5896b
8 changed files with 138 additions and 4 deletions
+5 -2
View File
@@ -1,8 +1,11 @@
package cmd
import "github.com/spf13/cobra"
import (
"github.com/spf13/cobra"
)
var RootCmd = &cobra.Command{}
func init() {
func SetVersion(version string) {
RootCmd.Version = version
}