Skip to content

Commit fcec118

Browse files
author
Quentin Perez
committed
ps: add commercial type information
1 parent 6fc6ea8 commit fcec118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/commands/ps.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func RunPs(ctx CommandContext, args PsArgs) error {
5555
w := tabwriter.NewWriter(ctx.Stdout, 20, 1, 3, ' ', 0)
5656
defer w.Flush()
5757
if !args.Quiet {
58-
fmt.Fprintf(w, "SERVER ID\tIMAGE\tCOMMAND\tCREATED\tSTATUS\tPORTS\tNAME\n")
58+
fmt.Fprintf(w, "SERVER ID\tIMAGE\tCOMMAND\tCREATED\tSTATUS\tPORTS\tNAME\tCOMMERCIAL TYPE\n")
5959
}
6060
for _, server := range *servers {
6161

@@ -113,7 +113,7 @@ func RunPs(ctx CommandContext, args PsArgs) error {
113113
creationTime, _ := time.Parse("2006-01-02T15:04:05.000000+00:00", server.CreationDate)
114114
shortCreationDate := units.HumanDuration(time.Now().UTC().Sub(creationTime))
115115
port := server.PublicAddress.IP
116-
fmt.Fprintf(w, "%s\t%s\t\t%s\t%s\t%s\t%s\n", shortID, shortImage, shortCreationDate, server.State, port, shortName)
116+
fmt.Fprintf(w, "%s\t%s\t\t%s\t%s\t%s\t%s\t%s\n", shortID, shortImage, shortCreationDate, server.State, port, shortName, server.CommercialType)
117117
}
118118
skipServer:
119119
continue

0 commit comments

Comments
 (0)