From c1390f232ee4d708ab45732d324caec5462f3d37 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 17 Oct 2021 23:50:12 +0200 Subject: [PATCH] fix: show "local" instead of "default" --- cli/app/deploy.go | 14 ++++++++++++-- cli/app/new.go | 4 ++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/cli/app/deploy.go b/cli/app/deploy.go index 1df58966..02752362 100644 --- a/cli/app/deploy.go +++ b/cli/app/deploy.go @@ -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 diff --git a/cli/app/new.go b/cli/app/new.go index 2b3cb168..2166860a 100644 --- a/cli/app/new.go +++ b/cli/app/new.go @@ -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})