Skip to content

Commit e7e887d

Browse files
committed
feat: rename package name & CLI support system proxy when downloading file & read config file by viper
1 parent 513e4d8 commit e7e887d

File tree

13 files changed

+2504
-200
lines changed

13 files changed

+2504
-200
lines changed

.golangci.yml

Lines changed: 0 additions & 130 deletions
This file was deleted.

.goreleaser.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,4 @@ $ leetcode-tool update
159159

160160
## License
161161

162-
MIT © zcong1993
162+
MIT © ppsteven

cmd/gpt/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package gpt
22

33
import (
4-
"github.com/zcong1993/leetcode-tool/internal/gpt"
5-
"github.com/zcong1993/leetcode-tool/pkg/leetcode"
4+
"github.com/ppsteven/leetcode-tool/internal/gpt"
5+
"github.com/ppsteven/leetcode-tool/pkg/leetcode"
66
"log"
77
)
88

cmd/main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ package main
22

33
import (
44
"fmt"
5-
"github.com/zcong1993/leetcode-tool/cmd/gpt"
6-
"github.com/zcong1993/leetcode-tool/internal/config"
5+
"github.com/ppsteven/leetcode-tool/cmd/gpt"
6+
"github.com/ppsteven/leetcode-tool/internal/config"
77
"log"
88
"os"
99

10-
"github.com/zcong1993/leetcode-tool/cmd/new"
11-
"github.com/zcong1993/leetcode-tool/cmd/tags"
12-
"github.com/zcong1993/leetcode-tool/cmd/update"
13-
"github.com/zcong1993/leetcode-tool/pkg/leetcode"
10+
"github.com/ppsteven/leetcode-tool/cmd/new"
11+
"github.com/ppsteven/leetcode-tool/cmd/tags"
12+
"github.com/ppsteven/leetcode-tool/cmd/update"
13+
"github.com/ppsteven/leetcode-tool/pkg/leetcode"
1414

1515
"gopkg.in/alecthomas/kingpin.v2"
1616
)

cmd/new/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"strings"
1111
"text/template"
1212

13-
"github.com/zcong1993/leetcode-tool/pkg/leetcode"
13+
"github.com/ppsteven/leetcode-tool/pkg/leetcode"
1414
)
1515

1616
type TplFile struct {

cmd/tags/tag.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"sync"
1212
"text/template"
1313

14-
"github.com/zcong1993/leetcode-tool/pkg/leetcode"
14+
"github.com/ppsteven/leetcode-tool/pkg/leetcode"
1515
)
1616

1717
var tagTpl = template.Must(template.New("tag").Parse(tagStr))

cmd/update/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package update
33
import (
44
"bytes"
55
"fmt"
6-
"github.com/zcong1993/leetcode-tool/pkg/leetcode"
6+
"github.com/ppsteven/leetcode-tool/pkg/leetcode"
77
"io/ioutil"
88
"log"
99
"os"

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/zcong1993/leetcode-tool
1+
module github.com/ppsteven/leetcode-tool
22

33
go 1.15
44

@@ -8,6 +8,7 @@ require (
88
github.com/bmatcuk/doublestar/v2 v2.0.3
99
github.com/dghubble/sling v1.4.2 // indirect
1010
github.com/sashabaranov/go-openai v1.22.0 // indirect
11+
github.com/spf13/viper v1.18.2 // indirect
1112
github.com/tidwall/gjson v1.6.3
1213
gopkg.in/alecthomas/kingpin.v2 v2.2.6
1314
)

0 commit comments

Comments
 (0)