From 10e4a8b97f1acf63190710172dc2ce1a74d04348 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Tue, 4 Jan 2022 11:56:29 +0100 Subject: [PATCH] fix: handle StackName/AppName correctly for new app creation --- cli/internal/new.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/internal/new.go b/cli/internal/new.go index 62cbe126..50a31e8d 100644 --- a/cli/internal/new.go +++ b/cli/internal/new.go @@ -165,7 +165,7 @@ func NewAction(c *cli.Context) error { tableCol := []string{"server", "type", "domain", "app name"} table := formatter.CreateTable(tableCol) - table.Append([]string{sanitisedAppName, Domain, recipe.Name, NewAppServer}) + table.Append([]string{NewAppServer, recipe.Name, Domain, NewAppName}) fmt.Println("") fmt.Println(fmt.Sprintf("A new %s app has been created! Here is an overview:", recipe.Name)) @@ -173,10 +173,10 @@ func NewAction(c *cli.Context) error { table.Render() fmt.Println("") fmt.Println("You can configure this app by running the following:") - fmt.Println(fmt.Sprintf("\n abra app config %s", sanitisedAppName)) + fmt.Println(fmt.Sprintf("\n abra app config %s", NewAppName)) fmt.Println("") fmt.Println("You can deploy this app by running the following:") - fmt.Println(fmt.Sprintf("\n abra app deploy %s", sanitisedAppName)) + fmt.Println(fmt.Sprintf("\n abra app deploy %s", NewAppName)) fmt.Println("") return nil