fix: add app name to ps output + docs
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Part of coop-cloud/organising#252.
This commit is contained in:
parent
900f40f07a
commit
fbdb792795
|
@ -28,6 +28,7 @@ var watchFlag = &cli.BoolFlag{
|
|||
var appPsCommand = &cli.Command{
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue