Skip to content

Commit 503e783

Browse files
committed
feat(fix ): typo
typo Signed-off-by: ysicing <i@ysicing.me>
1 parent bad7625 commit 503e783

File tree

5 files changed

+8
-52
lines changed

5 files changed

+8
-52
lines changed

cmd/clash.go

-23
This file was deleted.

cmd/clash/clash.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ var config, filterRegexConfig, name string
2525
func NewCmdClash(f factory.Factory) *cobra.Command {
2626
cmd := &cobra.Command{
2727
Use: "clash",
28-
Short: "clash",
29-
Version: "0.3.0",
28+
Short: "clash tools",
29+
Version: "2023.9.2015",
3030
}
3131
cmd.AddCommand(filterProxy(f))
3232
cmd.PersistentFlags().StringVar(&config, "config", "/etc/clash/config.yaml", "clash config")

cmd/root.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ import (
1717
"github.com/muesli/roff"
1818
"github.com/sirupsen/logrus"
1919
"github.com/spf13/cobra"
20+
"github.com/ysicing/tiga/cmd/clash"
2021
"github.com/ysicing/tiga/cmd/flags"
22+
"github.com/ysicing/tiga/cmd/xray"
2123
"github.com/ysicing/tiga/common"
2224
"github.com/ysicing/tiga/pkg/factory"
2325
"github.com/ysicing/tiga/pkg/log"
@@ -66,8 +68,8 @@ func BuildRoot(f factory.Factory) *cobra.Command {
6668
if zos.IsLinux() {
6769
rootCmd.AddCommand(newCmdApp(f))
6870
rootCmd.AddCommand(newCmdRepo(f))
69-
rootCmd.AddCommand(newCmdClash(f))
70-
rootCmd.AddCommand(newCmdXray(f))
71+
rootCmd.AddCommand(xray.NewCmdXray(f))
72+
rootCmd.AddCommand(clash.NewCmdClash(f))
7173
}
7274

7375
rootCmd.AddCommand(newManCmd())

cmd/xray.go

-23
This file was deleted.

cmd/xray/xray.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ var api string
2424
func NewCmdXray(f factory.Factory) *cobra.Command {
2525
cmd := &cobra.Command{
2626
Use: "xray",
27-
Short: "xray",
28-
Version: "0.2.0",
27+
Short: "xray tools",
28+
Version: "2023.9.2015",
2929
}
3030
cmd.AddCommand(trafficXray(f))
3131
cmd.PersistentFlags().StringVar(&api, "api", "127.0.0.1:10086", "api")

0 commit comments

Comments
 (0)