Skip to content

Commit

Permalink
chore(flag): StringToString.Values() -> StringToString.Value()
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Jul 27, 2024
1 parent 9cff21d commit 093235e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/config/flag/string_to_string.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ func (s *StringToString) String() string {
return "[" + strings.TrimSpace(buf.String()) + "]"
}

func (s *StringToString) Values() map[string]string {
func (s *StringToString) Value() map[string]string {
return maps.Clone(s.value)
}
2 changes: 1 addition & 1 deletion internal/config/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (c *Config) Load(cmd *cobra.Command) error {
c.Prefix = "#" + c.Prefix
}

c.Vars.Fill(c.valuesStringToString.Values())
c.Vars.Fill(c.valuesStringToString.Value())

if f := cmd.Flags().Lookup(FailFlag); f.Changed {
val, err := cmd.Flags().GetBool(FailFlag)
Expand Down

0 comments on commit 093235e

Please sign in to comment.