Skip to content

Commit 0806c8b

Browse files
raffisChristopherHXmergify[bot]
authored
feat: support config env expansion (#2063)
Signed-off-by: Raffael Sahli <[email protected]> Co-authored-by: ChristopherHX <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 0dfb067 commit 0806c8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/root.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ func readArgsFile(file string, split bool) []string {
267267
}()
268268
scanner := bufio.NewScanner(f)
269269
for scanner.Scan() {
270-
arg := strings.TrimSpace(scanner.Text())
270+
arg := os.ExpandEnv(strings.TrimSpace(scanner.Text()))
271+
271272
if strings.HasPrefix(arg, "-") && split {
272273
args = append(args, regexp.MustCompile(`\s`).Split(arg, 2)...)
273274
} else if !split {

0 commit comments

Comments
 (0)