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 + }, +}