Skip to content

Commit 26ef520

Browse files
authored
Move options to internal package (#13)
1 parent 433c35f commit 26ef520

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cmd/remote-work-processor/main.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
"github.com/SAP/remote-work-processor/internal/grpc/processors"
2525
"github.com/SAP/remote-work-processor/internal/kubernetes/controller"
2626
meta "github.com/SAP/remote-work-processor/internal/kubernetes/metadata"
27+
"github.com/SAP/remote-work-processor/internal/opt"
2728
"k8s.io/apimachinery/pkg/runtime"
2829
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
2930
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
@@ -134,8 +135,8 @@ Loop:
134135
}
135136
}
136137

137-
func setupFlagsAndLogger() *Options {
138-
opts := &Options{}
138+
func setupFlagsAndLogger() *opt.Options {
139+
opts := &opt.Options{}
139140
opts.BindFlags(flag.CommandLine)
140141

141142
zapOpts := zap.Options{}

cmd/remote-work-processor/cmd_options.go renamed to internal/opt/cmd_options.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package main
1+
package opt
22

33
import (
44
"crypto/sha256"

0 commit comments

Comments
 (0)