Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 152294a

Browse files
committed
Refactor make constructor of reference env private
1 parent 8bb2e97 commit 152294a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internals/secrethub/run.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (cmd *RunCommand) Run() error {
114114

115115
osEnv, passthroughEnv := parseKeyValueStringsToMap(cmd.osEnv())
116116

117-
referenceEnv := NewReferenceEnv(osEnv)
117+
referenceEnv := newReferenceEnv(osEnv)
118118
envSources = append(envSources, referenceEnv)
119119

120120
// TODO: Validate the flags when parsing by implementing the Flag interface for EnvFlags.
@@ -430,9 +430,9 @@ type referenceEnv struct {
430430
envVars map[string]string
431431
}
432432

433-
// NewReferenceEnv returns an environment with secrets configured in the
433+
// newReferenceEnv returns an environment with secrets configured in the
434434
// os environment with the secrethub:// syntax.
435-
func NewReferenceEnv(osEnv map[string]string) *referenceEnv {
435+
func newReferenceEnv(osEnv map[string]string) *referenceEnv {
436436
envVars := make(map[string]string)
437437
for key, value := range osEnv {
438438
if strings.HasPrefix(value, "secrethub://") {

0 commit comments

Comments
 (0)