Skip to content

Commit

Permalink
feat: allow env variables inside config
Browse files Browse the repository at this point in the history
  • Loading branch information
buroa committed Dec 4, 2024
1 parent 0f65e8f commit 83c982d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ func LoadFile(filename string) (*Config, error) {
if err != nil {
return nil, err
}
cfg, err := Load(string(content))
expanded := os.ExpandEnv(string(content))
cfg, err := Load(expanded)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 83c982d

Please sign in to comment.