This commit is contained in:
2024-09-19 18:12:24 +08:00
parent 89bb0d03e0
commit a1dcc1867f
19 changed files with 69 additions and 49 deletions

View File

@@ -5,8 +5,9 @@ import (
"fmt"
"os"
"path/filepath"
"sub2sing-box/common"
"sub2sing-box/model"
"github.com/nitezs/sub2sing-box/common"
"github.com/nitezs/sub2sing-box/model"
"github.com/spf13/cobra"
)
@@ -79,7 +80,7 @@ func convertRun(cmd *cobra.Command, args []string) {
func loadConfig() {
if config == "" {
if wd, err := os.Getwd(); err == nil {
config = filepath.Join(wd, "sub2sing-box.json")
config = filepath.Join(wd, "github.com/nitezs/sub2sing-box.json")
if _, err := os.Stat(config); os.IsNotExist(err) {
return
}

View File

@@ -1,7 +1,7 @@
package cmd
import (
"sub2sing-box/api"
"github.com/nitezs/sub2sing-box/api"
"github.com/spf13/cobra"
)

View File

@@ -2,7 +2,8 @@ package cmd
import (
"fmt"
"sub2sing-box/constant"
"github.com/nitezs/sub2sing-box/constant"
"github.com/spf13/cobra"
)