From 6be2f363346c20360fc854fcce6d65f7508fb16c Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Wed, 22 Dec 2021 00:48:00 +0100 Subject: [PATCH] WIP app errors place holder --- cli/app/app.go | 1 + cli/app/errors.go | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 cli/app/errors.go diff --git a/cli/app/app.go b/cli/app/app.go index 97438df5..64e3f55a 100644 --- a/cli/app/app.go +++ b/cli/app/app.go @@ -35,5 +35,6 @@ to scaling apps up and spinning them down. appSecretCommand, appVolumeCommand, appVersionCommand, + appErrorsCommand, }, } diff --git a/cli/app/errors.go b/cli/app/errors.go new file mode 100644 index 00000000..20ae9afd --- /dev/null +++ b/cli/app/errors.go @@ -0,0 +1,27 @@ +package app + +import ( + "coopcloud.tech/abra/pkg/autocomplete" + "github.com/urfave/cli/v2" +) + +var appErrorsCommand = &cli.Command{ + Name: "errors", + Usage: "List errors for a deployed app", + Description: ` +This command will list errors for a deployed app. This is a best-effort +implementation and an attempt to gather a number of tips & tricks for finding +errors together into one convenient command. When an app is failing to deploy +or having issues, it could be a lot of things. This command is best accompanied +by "abra app logs ". +`, + Aliases: []string{"e"}, + Flags: []cli.Flag{}, + BashComplete: autocomplete.AppNameComplete, + Action: func(c *cli.Context) error { + // TODO: entrypoint error + // TODO: ps --no-trunc errors + // TODO: failing healthcheck + return nil + }, +}