init
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"trojan/util"
|
||||
)
|
||||
|
||||
// updateWebCmd represents the update command
|
||||
var updateWebCmd = &cobra.Command{
|
||||
Use: "updateWeb",
|
||||
Short: "更新trojan管理程序",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
util.RunWebShell("https://git.io/trojan-install")
|
||||
},
|
||||
}
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(updateWebCmd)
|
||||
}
|
||||
Reference in New Issue
Block a user