Debian Codegraph @

debian/patches/0002-sink-external.patch

raw symbols SCIP
1 From: Anoop M S <[email protected]>
2 Subject: [PATCH] Moved sink outside internal to make it public
3 Origin: upstream, https://github.com/humanlogio/humanlog/commit/30e6c17fb09e8008825568527f94ab9bec61433a
4 Bug: https://github.com/humanlogio/humanlog/issues/67
5 Forwarded: https://github.com/humanlogio/humanlog/pull/70
6
7 ---
8 cmd/humanlog/main.go | 2 +-
9 e2e_test.go | 2 +-
10 scanner.go | 2 +-
11 scanner_test.go | 2 +-
12 {internal/pkg/sink => sink}/bufsink/sized.go | 2 +-
13 {internal/pkg/sink => sink}/sink.go | 0
14 {internal/pkg/sink => sink}/stdiosink/colors.go | 0
15 {internal/pkg/sink => sink}/stdiosink/stdio.go | 2 +-
16 8 files changed, 6 insertions(+), 6 deletions(-)
17 rename {internal/pkg/sink => sink}/bufsink/sized.go (93%)
18 rename {internal/pkg/sink => sink}/sink.go (100%)
19 rename {internal/pkg/sink => sink}/stdiosink/colors.go (100%)
20 rename {internal/pkg/sink => sink}/stdiosink/stdio.go (99%)
21
22 diff --git a/cmd/humanlog/main.go b/cmd/humanlog/main.go
23 index 49cd9adf..8ef07955 100644
24 --- a/cmd/humanlog/main.go
25 +++ b/cmd/humanlog/main.go
26 @@ -15,8 +15,8 @@ import (
27 types "github.com/humanlogio/api/go/types/v1"
28 "github.com/humanlogio/humanlog"
29 "github.com/humanlogio/humanlog/internal/pkg/config"
30 - "github.com/humanlogio/humanlog/internal/pkg/sink/stdiosink"
31 "github.com/humanlogio/humanlog/internal/pkg/state"
32 + "github.com/humanlogio/humanlog/sink/stdiosink"
33 "github.com/mattn/go-colorable"
34 "github.com/urfave/cli"
35 )
36 diff --git a/e2e_test.go b/e2e_test.go
37 index fb14558e..5a5a2cf0 100644
38 --- a/e2e_test.go
39 +++ b/e2e_test.go
40 @@ -10,7 +10,7 @@ import (
41 "testing"
42
43 "github.com/humanlogio/humanlog/internal/pkg/config"
44 - "github.com/humanlogio/humanlog/internal/pkg/sink/stdiosink"
45 + "github.com/humanlogio/humanlog/sink/stdiosink"
46 )
47
48 func TestHarness(t *testing.T) {
49 diff --git a/scanner.go b/scanner.go
50 index 833436e7..6431a4d3 100644
51 --- a/scanner.go
52 +++ b/scanner.go
53 @@ -8,7 +8,7 @@ import (
54 "time"
55
56 "github.com/humanlogio/humanlog/internal/pkg/model"
57 - "github.com/humanlogio/humanlog/internal/pkg/sink"
58 + "github.com/humanlogio/humanlog/sink"
59 )
60
61 // Scan reads JSON-structured lines from src and prettify them onto dst. If
62 diff --git a/scanner_test.go b/scanner_test.go
63 index 63db239a..06780317 100644
64 --- a/scanner_test.go
65 +++ b/scanner_test.go
66 @@ -6,7 +6,7 @@ import (
67 "testing"
68
69 "github.com/humanlogio/humanlog/internal/pkg/model"
70 - "github.com/humanlogio/humanlog/internal/pkg/sink/bufsink"
71 + "github.com/humanlogio/humanlog/sink/bufsink"
72 "github.com/stretchr/testify/require"
73 )
74
75 diff --git a/internal/pkg/sink/bufsink/sized.go b/sink/bufsink/sized.go
76 similarity index 93%
77 rename from internal/pkg/sink/bufsink/sized.go
78 rename to sink/bufsink/sized.go
79 index 453008ee..57463c62 100644
80 --- a/internal/pkg/sink/bufsink/sized.go
81 +++ b/sink/bufsink/sized.go
82 @@ -4,7 +4,7 @@ import (
83 "context"
84
85 "github.com/humanlogio/humanlog/internal/pkg/model"
86 - "github.com/humanlogio/humanlog/internal/pkg/sink"
87 + "github.com/humanlogio/humanlog/sink"
88 )
89
90 type SizedBuffer struct {
91 diff --git a/internal/pkg/sink/sink.go b/sink/sink.go
92 similarity index 100%
93 rename from internal/pkg/sink/sink.go
94 rename to sink/sink.go
95 diff --git a/internal/pkg/sink/stdiosink/colors.go b/sink/stdiosink/colors.go
96 similarity index 100%
97 rename from internal/pkg/sink/stdiosink/colors.go
98 rename to sink/stdiosink/colors.go
99 diff --git a/internal/pkg/sink/stdiosink/stdio.go b/sink/stdiosink/stdio.go
100 similarity index 99%
101 rename from internal/pkg/sink/stdiosink/stdio.go
102 rename to sink/stdiosink/stdio.go
103 index 6561b919..6931f094 100644
104 --- a/internal/pkg/sink/stdiosink/stdio.go
105 +++ b/sink/stdiosink/stdio.go
106 @@ -13,7 +13,7 @@ import (
107 "github.com/fatih/color"
108 "github.com/humanlogio/humanlog/internal/pkg/config"
109 "github.com/humanlogio/humanlog/internal/pkg/model"
110 - "github.com/humanlogio/humanlog/internal/pkg/sink"
111 + "github.com/humanlogio/humanlog/sink"
112 )
113
114 var (