Merge pull request #26 from netbenix/SCABIOSA-10
Removed unnecessary brackets
This commit is contained in:
commit
3393d1a5f0
2 changed files with 11 additions and 24 deletions
|
|
@ -36,15 +36,11 @@ func GenerateNewConfigsCommand() *cli.Command {
|
||||||
fmt.Scanf("%d", &inputInt)
|
fmt.Scanf("%d", &inputInt)
|
||||||
switch inputInt {
|
switch inputInt {
|
||||||
case 0:
|
case 0:
|
||||||
{
|
|
||||||
sqlConfig.SqlType = "mariadb"
|
sqlConfig.SqlType = "mariadb"
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
{
|
|
||||||
fmt.Printf("Invalid input!")
|
fmt.Printf("Invalid input!")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
fmt.Printf("\n\nSQL Address: ")
|
fmt.Printf("\n\nSQL Address: ")
|
||||||
fmt.Scanf("%s", &sqlConfig.SqlAddress)
|
fmt.Scanf("%s", &sqlConfig.SqlAddress)
|
||||||
|
|
@ -71,10 +67,9 @@ func GenerateNewConfigsCommand() *cli.Command {
|
||||||
fmt.Scanf("%d", &inputInt)
|
fmt.Scanf("%d", &inputInt)
|
||||||
switch inputInt {
|
switch inputInt {
|
||||||
case 0:
|
case 0:
|
||||||
{
|
|
||||||
fmt.Printf("Reminder: remoteStorageType = none\n")
|
fmt.Printf("Reminder: remoteStorageType = none\n")
|
||||||
//Do (nearly) nothing! :D
|
//Do (nearly) nothing! :D
|
||||||
}
|
|
||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
var azure Tools.AzureConfig
|
var azure Tools.AzureConfig
|
||||||
|
|
@ -89,11 +84,9 @@ func GenerateNewConfigsCommand() *cli.Command {
|
||||||
fmt.Printf("Reminder: remoteStorageType = azure-file\n")
|
fmt.Printf("Reminder: remoteStorageType = azure-file\n")
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
|
||||||
fmt.Printf("Invalid input!")
|
fmt.Printf("Invalid input!")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Tools.GenerateBaseConfig()
|
Tools.GenerateBaseConfig()
|
||||||
fmt.Printf("All configs generated!\n")
|
fmt.Printf("All configs generated!\n")
|
||||||
|
|
|
||||||
|
|
@ -42,18 +42,12 @@ func GetSQLInstance() SQLService {
|
||||||
|
|
||||||
switch sqlConfig.SqlType {
|
switch sqlConfig.SqlType {
|
||||||
case "mariadb":
|
case "mariadb":
|
||||||
{
|
|
||||||
return GetMariaDBInstance(sqlConfig)
|
return GetMariaDBInstance(sqlConfig)
|
||||||
}
|
|
||||||
case "mysql":
|
case "mysql":
|
||||||
{
|
|
||||||
return GetMariaDBInstance(sqlConfig)
|
return GetMariaDBInstance(sqlConfig)
|
||||||
}
|
|
||||||
case "mssql":
|
case "mssql":
|
||||||
{
|
|
||||||
return GetMSSQLInstance(sqlConfig)
|
return GetMSSQLInstance(sqlConfig)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue