Skip to content

Commit

Permalink
chore: regenerate example config
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap authored and ezr-ondrej committed Nov 7, 2023
1 parent 26fdaaa commit 18a746d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions cmd/confgen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func main() {

fmt.Printf("#\n# Copy this file as config/api.env, the syntax is KEY=value.\n")
fmt.Printf("#\n# Values from config/{worker,migrate,typesctl,test} take precedence.\n")
fmt.Printf("# This file was generated by 'make generate-example-config'.\n")
fmt.Printf("# This file was generated by 'make generate-example-config'.\n#\n")

help, err := config.HelpText()
if err != nil {
Expand All @@ -25,8 +25,10 @@ func main() {

s := bufio.NewScanner(strings.NewReader(help))
for s.Scan() {
fmt.Printf("# %s\n", s.Text())
if s.Text() != "" {
fmt.Printf("# %s\n", s.Text())
}
}

fmt.Printf("#\n\n")
fmt.Printf("#\n")
}
3 changes: 1 addition & 2 deletions config/api.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Values from config/{worker,migrate,typesctl,test} take precedence.
# This file was generated by 'make generate-example-config'.
#
#
# APP_CACHE_EXPIRATION int64
# expiration for Redis application cache (time interval syntax) (default "10m")
# APP_CACHE_MEM_CLEANUP_INTERVAL int64
Expand Down Expand Up @@ -203,4 +203,3 @@
# WORKER_TIMEOUT int64
# total timeout for a single job to complete (duration) (default "30m")
#

0 comments on commit 18a746d

Please sign in to comment.