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