fix: show "local" instead of "default"

This commit is contained in:
decentral1se 2021-10-17 23:50:12 +02:00
parent 95e19f03c4
commit c1390f232e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 16 additions and 2 deletions

View File

@ -135,7 +135,12 @@ func DeployOverview(app config.App, version string) error {
deployConfig = strings.Join(strings.Split(composeFiles, ":"), "\n")
}
table.Append([]string{app.Server, deployConfig, app.Domain, app.StackName(), version})
server := app.Server
if app.Server == "default" {
server = "local"
}
table.Append([]string{server, deployConfig, app.Domain, app.StackName(), version})
table.Render()
response := false
@ -164,7 +169,12 @@ func NewVersionOverview(app config.App, currentVersion, newVersion string) error
deployConfig = strings.Join(strings.Split(composeFiles, ":"), "\n")
}
table.Append([]string{app.Server, deployConfig, app.Domain, app.StackName(), currentVersion, newVersion})
server := app.Server
if app.Server == "default" {
server = "local"
}
table.Append([]string{server, deployConfig, app.Domain, app.StackName(), currentVersion, newVersion})
table.Render()
response := false

View File

@ -210,6 +210,10 @@ func action(c *cli.Context) error {
}
}
if newAppServer == "default" {
newAppServer = "local"
}
tableCol := []string{"Name", "Domain", "Type", "Server"}
table := abraFormatter.CreateTable(tableCol)
table.Append([]string{sanitisedAppName, domain, recipe.Name, newAppServer})