From 6f43778691cbecfccc8c775102b923baa57326f0 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 22 Sep 2021 08:59:00 +0200 Subject: [PATCH] fix: better UI/UX for app creation Closes https://git.coopcloud.tech/coop-cloud/organising/issues/145. --- cli/app/new.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cli/app/new.go b/cli/app/new.go index 61db25f2..2b3cb168 100644 --- a/cli/app/new.go +++ b/cli/app/new.go @@ -213,7 +213,18 @@ func action(c *cli.Context) error { tableCol := []string{"Name", "Domain", "Type", "Server"} table := abraFormatter.CreateTable(tableCol) table.Append([]string{sanitisedAppName, domain, recipe.Name, newAppServer}) - defer table.Render() + + fmt.Println("") + fmt.Println(fmt.Sprintf("New '%s' created! Here is your new app overview:", recipe.Name)) + fmt.Println("") + 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.Println("You can deploy this app by running the following:") + fmt.Println(fmt.Sprintf("\n abra app deploy %s", sanitisedAppName)) + fmt.Println("") return nil }