WIP app errors place holder
continuous-integration/drone/push Build is failing Details

This commit is contained in:
decentral1se 2021-12-22 00:48:00 +01:00
parent a18d0e290d
commit 6be2f36334
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
2 changed files with 28 additions and 0 deletions

View File

@ -35,5 +35,6 @@ to scaling apps up and spinning them down.
appSecretCommand,
appVolumeCommand,
appVersionCommand,
appErrorsCommand,
},
}

27
cli/app/errors.go Normal file
View File

@ -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 <app>".
`,
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
},
}