Skip to content

Commit

Permalink
cmd/gotext: actually use -dir flag
Browse files Browse the repository at this point in the history
gotext has the read -dir flag but is not used.
The dir parameter should be passed to pipeline.Config

Fixes golang/go#61507

Change-Id: I242a768964fe56c4c7877de9dc487777c6815dae
Reviewed-on: https://go-review.googlesource.com/c/text/+/512015
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
  • Loading branch information
miilord authored and gopherbot committed Jul 21, 2023
1 parent f3e69ed commit fb697c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/gotext/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func config() (*pipeline.Config, error) {
Supported: getLangs(),
TranslationsPattern: `messages\.(.*)\.json$`,
GenFile: *out,
Dir: *dir,
}, nil
}

Expand Down

0 comments on commit fb697c0

Please sign in to comment.