From 3fd249b0d85a7de6c8f550db6ab24cc4bb4268a0 Mon Sep 17 00:00:00 2001 From: "Wiktor W." Date: Fri, 5 Jan 2024 18:37:33 +0100 Subject: [PATCH] fix: display text next to emojis in app check cmd --- cli/app/check.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cli/app/check.go b/cli/app/check.go index 6b0e8455..7b57b9cb 100644 --- a/cli/app/check.go +++ b/cli/app/check.go @@ -5,7 +5,6 @@ import ( "coopcloud.tech/abra/pkg/autocomplete" "coopcloud.tech/abra/pkg/config" "coopcloud.tech/abra/pkg/formatter" - "coopcloud.tech/abra/pkg/recipe" recipePkg "coopcloud.tech/abra/pkg/recipe" "github.com/sirupsen/logrus" "github.com/urfave/cli" @@ -38,7 +37,7 @@ ${FOO:} syntax). "check" does not confirm or deny this for you.`, Action: func(c *cli.Context) error { app := internal.ValidateApp(c) - if err := recipe.EnsureExists(app.Recipe); err != nil { + if err := recipePkg.EnsureExists(app.Recipe); err != nil { logrus.Fatal(err) } @@ -68,9 +67,9 @@ ${FOO:} syntax). "check" does not confirm or deny this for you.`, for _, envVar := range envVars { if envVar.Present { - table.Append([]string{envVar.Name, "✅"}) + table.Append([]string{envVar.Name, "✅ OK"}) } else { - table.Append([]string{envVar.Name, "❌"}) + table.Append([]string{envVar.Name, "❌ Missing"}) } }