Skip to content

Commit

Permalink
🎨 Code format cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 22, 2021
1 parent b508912 commit e23ae5f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (

var (
Version = "next"
Commit = ""
Commit = ""
)

var Command = &cobra.Command{
Use: "kubedb",
Short: "Interact with a database inside of Kubernetes",
Use: "kubedb",
Short: "Interact with a database inside of Kubernetes",
Version: buildVersion(),
PersistentPreRun: func(cmd *cobra.Command, args []string) {
cmd.SilenceUsage = true
Expand Down
8 changes: 4 additions & 4 deletions cmd/dump/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ var (
username string
password string
directory string
gzipFile bool
ifExists bool
clean bool
noOwner bool
gzipFile bool
ifExists bool
clean bool
noOwner bool
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func run(cmd *cobra.Command, args []string) (err error) {
log.Println("Execing into \"" + postgresPod.Name + "\"")

stdin := streams.NewIn(os.Stdin)
if err := stdin.SetRawTerminal(); err != nil{
if err := stdin.SetRawTerminal(); err != nil {
return err
}
defer stdin.RestoreTerminal()
Expand Down
8 changes: 4 additions & 4 deletions cmd/restore/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ var Command = &cobra.Command{
}

var (
database string
username string
password string
database string
username string
password string
singleTransaction bool
)

Expand Down Expand Up @@ -108,7 +108,7 @@ func buildCommand(gunzip bool) []string {
if gunzip {
cmd = []string{"gunzip", "|"}
}
cmd = append(cmd, "PGPASSWORD=" + password, "psql", "--username=" + username, database)
cmd = append(cmd, "PGPASSWORD="+password, "psql", "--username="+username, database)
if singleTransaction {
cmd = append(cmd, "--single-transaction")
}
Expand Down

0 comments on commit e23ae5f

Please sign in to comment.