fix: add app name to ps output + docs
continuous-integration/drone/push Build is passing Details

Part of coop-cloud/organising#252.
This commit is contained in:
decentral1se 2021-11-21 14:07:06 +01:00
parent 900f40f07a
commit fbdb792795
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 6 additions and 4 deletions

View File

@ -26,9 +26,10 @@ var watchFlag = &cli.BoolFlag{
}
var appPsCommand = &cli.Command{
Name: "ps",
Usage: "Check app status",
Aliases: []string{"p"},
Name: "ps",
Usage: "Check app status",
Description: "This command shows a more detailed status output of a specific deployed app.",
Aliases: []string{"p"},
Flags: []cli.Flag{
watchFlag,
},
@ -75,7 +76,7 @@ func showPSOutput(c *cli.Context) {
logrus.Fatal(err)
}
tableCol := []string{"image", "created", "status", "ports", "names"}
tableCol := []string{"image", "created", "status", "ports", "app name", "services"}
table := abraFormatter.CreateTable(tableCol)
for _, container := range containers {
@ -90,6 +91,7 @@ func showPSOutput(c *cli.Context) {
abraFormatter.HumanDuration(container.Created),
container.Status,
formatter.DisplayablePorts(container.Ports),
app.StackName(),
strings.Join(containerNames, "\n"),
}
table.Append(tableRow)