Skip to content

Commit

Permalink
feat(fix ): typo
Browse files Browse the repository at this point in the history
typo

Signed-off-by: ysicing <[email protected]>
  • Loading branch information
ysicing committed Sep 20, 2023
1 parent bad7625 commit 503e783
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 52 deletions.
23 changes: 0 additions & 23 deletions cmd/clash.go

This file was deleted.

4 changes: 2 additions & 2 deletions cmd/clash/clash.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ var config, filterRegexConfig, name string
func NewCmdClash(f factory.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "clash",
Short: "clash",
Version: "0.3.0",
Short: "clash tools",
Version: "2023.9.2015",
}
cmd.AddCommand(filterProxy(f))
cmd.PersistentFlags().StringVar(&config, "config", "/etc/clash/config.yaml", "clash config")
Expand Down
6 changes: 4 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import (
"github.com/muesli/roff"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/ysicing/tiga/cmd/clash"
"github.com/ysicing/tiga/cmd/flags"
"github.com/ysicing/tiga/cmd/xray"
"github.com/ysicing/tiga/common"
"github.com/ysicing/tiga/pkg/factory"
"github.com/ysicing/tiga/pkg/log"
Expand Down Expand Up @@ -66,8 +68,8 @@ func BuildRoot(f factory.Factory) *cobra.Command {
if zos.IsLinux() {
rootCmd.AddCommand(newCmdApp(f))
rootCmd.AddCommand(newCmdRepo(f))
rootCmd.AddCommand(newCmdClash(f))
rootCmd.AddCommand(newCmdXray(f))
rootCmd.AddCommand(xray.NewCmdXray(f))
rootCmd.AddCommand(clash.NewCmdClash(f))
}

rootCmd.AddCommand(newManCmd())
Expand Down
23 changes: 0 additions & 23 deletions cmd/xray.go

This file was deleted.

4 changes: 2 additions & 2 deletions cmd/xray/xray.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ var api string
func NewCmdXray(f factory.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "xray",
Short: "xray",
Version: "0.2.0",
Short: "xray tools",
Version: "2023.9.2015",
}
cmd.AddCommand(trafficXray(f))
cmd.PersistentFlags().StringVar(&api, "api", "127.0.0.1:10086", "api")
Expand Down

0 comments on commit 503e783

Please sign in to comment.