Skip to content

Commit b05e701

Browse files
committed
refactor: transfer module
1 parent b1a29b0 commit b05e701

51 files changed

Lines changed: 108 additions & 99 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎analyze.go‎

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

33
import (
44
"github.com/dominikbraun/graph"
5-
"github.com/williamfzc/sibyl2/pkg/core"
6-
"github.com/williamfzc/sibyl2/pkg/extractor"
5+
"github.com/opensibyl/sibyl2/pkg/core"
6+
"github.com/opensibyl/sibyl2/pkg/extractor"
77
)
88

99
// These functions are designed on the top of query.go

‎analyze_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"testing"
66

7-
"github.com/williamfzc/sibyl2/pkg/core"
7+
"github.com/opensibyl/sibyl2/pkg/core"
88
)
99

1010
func TestAnalyzeFuncGraph(t *testing.T) {

‎cmd/sibyl/cmd_root.go‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package main
33
import (
44
"log"
55

6+
"github.com/opensibyl/sibyl2/cmd/sibyl/subs/diff"
7+
"github.com/opensibyl/sibyl2/cmd/sibyl/subs/extract"
8+
"github.com/opensibyl/sibyl2/cmd/sibyl/subs/history"
9+
"github.com/opensibyl/sibyl2/cmd/sibyl/subs/server"
10+
"github.com/opensibyl/sibyl2/cmd/sibyl/subs/upload"
611
"github.com/spf13/cobra"
7-
"github.com/williamfzc/sibyl2/cmd/sibyl/subs/diff"
8-
"github.com/williamfzc/sibyl2/cmd/sibyl/subs/extract"
9-
"github.com/williamfzc/sibyl2/cmd/sibyl/subs/history"
10-
"github.com/williamfzc/sibyl2/cmd/sibyl/subs/server"
11-
"github.com/williamfzc/sibyl2/cmd/sibyl/subs/upload"
1212
)
1313

1414
var rootCmd = &cobra.Command{

‎cmd/sibyl/subs/diff/cmd_diff.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"os/exec"
88
"time"
99

10+
"github.com/opensibyl/sibyl2/pkg/core"
1011
"github.com/spf13/cobra"
11-
"github.com/williamfzc/sibyl2/pkg/core"
1212
)
1313

1414
var diffSrc string

‎cmd/sibyl/subs/diff/diff.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"os"
55
"path/filepath"
66

7-
"github.com/williamfzc/sibyl2"
8-
"github.com/williamfzc/sibyl2/pkg/ext"
9-
"github.com/williamfzc/sibyl2/pkg/extractor"
7+
"github.com/opensibyl/sibyl2"
8+
"github.com/opensibyl/sibyl2/pkg/ext"
9+
"github.com/opensibyl/sibyl2/pkg/extractor"
1010
)
1111

1212
type FunctionWithWeight struct {

‎cmd/sibyl/subs/extract/cmd_extract.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"os"
88
"time"
99

10+
"github.com/opensibyl/sibyl2"
11+
"github.com/opensibyl/sibyl2/pkg/core"
12+
"github.com/opensibyl/sibyl2/pkg/extractor"
1013
"github.com/spf13/cobra"
11-
"github.com/williamfzc/sibyl2"
12-
"github.com/williamfzc/sibyl2/pkg/core"
13-
"github.com/williamfzc/sibyl2/pkg/extractor"
1414
"golang.org/x/exp/slices"
1515
)
1616

‎cmd/sibyl/subs/history/cmd_history.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package history
22

33
import (
4+
"github.com/opensibyl/sibyl2/pkg/core"
45
"github.com/spf13/cobra"
5-
"github.com/williamfzc/sibyl2/pkg/core"
66
)
77

88
/*

‎cmd/sibyl/subs/history/history.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import (
1111
"github.com/awalterschulze/gographviz"
1212
"github.com/go-git/go-git/v5"
1313
"github.com/go-git/go-git/v5/plumbing/object"
14-
"github.com/williamfzc/sibyl2"
15-
"github.com/williamfzc/sibyl2/pkg/core"
16-
"github.com/williamfzc/sibyl2/pkg/ext"
17-
"github.com/williamfzc/sibyl2/pkg/extractor"
14+
"github.com/opensibyl/sibyl2"
15+
"github.com/opensibyl/sibyl2/pkg/core"
16+
"github.com/opensibyl/sibyl2/pkg/ext"
17+
"github.com/opensibyl/sibyl2/pkg/extractor"
1818
)
1919

2020
const D3Template = `

‎cmd/sibyl/subs/server/cmd_server.go‎

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

33
import (
4+
"github.com/opensibyl/sibyl2/pkg/server"
5+
"github.com/opensibyl/sibyl2/pkg/server/object"
46
"github.com/spf13/cobra"
5-
"github.com/williamfzc/sibyl2/pkg/server"
6-
"github.com/williamfzc/sibyl2/pkg/server/object"
77
)
88

99
var serverBackendUrl string

‎cmd/sibyl/subs/upload/cmd_upload.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212

1313
"github.com/go-git/go-git/v5"
1414
"github.com/hashicorp/go-retryablehttp"
15+
"github.com/opensibyl/sibyl2"
16+
"github.com/opensibyl/sibyl2/pkg/core"
17+
"github.com/opensibyl/sibyl2/pkg/extractor"
18+
"github.com/opensibyl/sibyl2/pkg/server/object"
1519
"github.com/spf13/cobra"
16-
"github.com/williamfzc/sibyl2"
17-
"github.com/williamfzc/sibyl2/pkg/core"
18-
"github.com/williamfzc/sibyl2/pkg/extractor"
19-
"github.com/williamfzc/sibyl2/pkg/server/object"
2020
)
2121

2222
var uploadSrc string

0 commit comments

Comments
 (0)
⌂ 换网址