Fix whitespace

This runs `go fmt` on changed files and moves around some blank lines.
pull/127/head
Matt Baer 5 years ago
parent 6506709fbc
commit a740c67495
  1. 4
      cmd/writefreely/main.go
  2. 8
      config/setup.go

@ -28,8 +28,8 @@ func main() {
// Setup actions // Setup actions
createConfig := flag.Bool("create-config", false, "Creates a basic configuration and exits") createConfig := flag.Bool("create-config", false, "Creates a basic configuration and exits")
doConfig := flag.Bool("config", false, "Run the configuration process") doConfig := flag.Bool("config", false, "Run the configuration process")
configSections := flag.String("sections", "server db app", "Which sections of the configuration to go through (requires --config), " + configSections := flag.String("sections", "server db app", "Which sections of the configuration to go through (requires --config), "+
"valid values are any combination of 'server', 'db' and 'app' " + "valid values are any combination of 'server', 'db' and 'app' "+
"example: writefreely --config --sections \"db app\"") "example: writefreely --config --sections \"db app\"")
genKeys := flag.Bool("gen-keys", false, "Generate encryption and authentication keys") genKeys := flag.Bool("gen-keys", false, "Generate encryption and authentication keys")
createSchema := flag.Bool("init-db", false, "Initialize app database") createSchema := flag.Bool("init-db", false, "Initialize app database")

@ -77,8 +77,7 @@ func Configure(fname string, configSections string) (*SetupData, error) {
var prompt promptui.Prompt var prompt promptui.Prompt
if strings.Contains(configSections, "server"){ if strings.Contains(configSections, "server") {
title(" Server setup ") title(" Server setup ")
fmt.Println() fmt.Println()
@ -143,7 +142,8 @@ func Configure(fname string, configSections string) (*SetupData, error) {
fmt.Println() fmt.Println()
} }
if strings.Contains(configSections, "db"){
if strings.Contains(configSections, "db") {
title(" Database setup ") title(" Database setup ")
fmt.Println() fmt.Println()
@ -235,8 +235,8 @@ func Configure(fname string, configSections string) (*SetupData, error) {
fmt.Println() fmt.Println()
} }
if strings.Contains(configSections, "app"){
if strings.Contains(configSections, "app") {
title(" App setup ") title(" App setup ")
fmt.Println() fmt.Println()

Loading…
Cancel
Save