Skip to content

Commit fb82879

Browse files
committed
kepctl output: drop io fields from Repo
The last remaining use of them was a testcase that wasn't actually checking the contents of the ByteBuffer it swapped in. Drop that, then drop the fields
1 parent bdee3be commit fb82879

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

pkg/repo/repo.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package repo
1919
import (
2020
"context"
2121
"fmt"
22-
"io"
2322
"io/ioutil"
2423
"net/http"
2524
"os"
@@ -64,11 +63,6 @@ type Repo struct {
6463
TokenPath string
6564
Token string
6665

67-
// I/O
68-
In io.Reader
69-
Out io.Writer
70-
Err io.Writer
71-
7266
// Document handlers
7367
KEPHandler *api.KEPHandler
7468
PRRHandler *api.PRRHandler
@@ -162,9 +156,6 @@ func NewRepo(repoPath string, fetcher api.GroupFetcher) (*Repo, error) {
162156
ProposalPath: proposalPath,
163157
PRRApprovalPath: prrApprovalPath,
164158
ProposalReadme: proposalReadme,
165-
In: os.Stdin,
166-
Out: os.Stdout,
167-
Err: os.Stderr,
168159
KEPHandler: kepHandler,
169160
PRRHandler: prrHandler,
170161
}

pkg/repo/write_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ func newTestClient(t *testing.T, repoPath string) testClient {
178178
r, err := repo.NewRepo(repoPath, fetcher)
179179
require.Nil(t, err)
180180

181-
r.Out = b
182181
tc.r = r
183182

184183
// TODO: Parameterize

0 commit comments

Comments
 (0)