Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
rename option var name to certfile from sslCA
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Apr 11, 2020
1 parent 521de29 commit 80f5bc7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmd/goose/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
)

var (
flags = flag.NewFlagSet("goose", flag.ExitOnError)
dir = flags.String("dir", ".", "directory with migration files")
verbose = flags.Bool("v", false, "enable verbose mode")
help = flags.Bool("h", false, "print help")
version = flags.Bool("version", false, "print version")
sslCA = flags.String("ssl-ca", "", "file path to root CA's certificates in pem format (only support on mysql)")
flags = flag.NewFlagSet("goose", flag.ExitOnError)
dir = flags.String("dir", ".", "directory with migration files")
verbose = flags.Bool("v", false, "enable verbose mode")
help = flags.Bool("h", false, "print help")
version = flags.Bool("version", false, "print version")
certfile = flags.String("ssl-ca", "", "file path to root CA's certificates in pem format (only support on mysql)")
)

func main() {
Expand All @@ -36,9 +36,9 @@ func main() {
return
}

tls := *sslCA != ""
tls := *certfile != ""
if tls {
if err := registerTLSConfig(*sslCA); err != nil {
if err := registerTLSConfig(*certfile); err != nil {
log.Fatalf("goose run: %v", err)
}
}
Expand Down

0 comments on commit 80f5bc7

Please sign in to comment.