@@ -7,12 +7,14 @@ import (
77)
88
99type AppVersionResponse struct {
10- VersionLabel string `json:"versionLabel"`
11- Sequence int64 `json:"sequence"`
12- CreatedOn time.Time `json:"createdOn"`
13- Status string `json:"status"`
14- DeployedAt * time.Time `json:"deployedAt"`
15- Source string `json:"source"`
10+ VersionLabel string `json:"versionLabel"`
11+ Sequence int64 `json:"sequence"`
12+ CreatedOn time.Time `json:"createdOn"`
13+ Status string `json:"status"`
14+ DeployedAt * time.Time `json:"deployedAt"`
15+ Source string `json:"source"`
16+ ChannelID string `json:"channelId"`
17+ ChannelSequence int64 `json:"channelSequence"`
1618}
1719
1820func Versions (versions []AppVersionResponse , format string ) {
@@ -33,9 +35,9 @@ func printVersionsTable(versions []AppVersionResponse) {
3335 w := NewTabWriter ()
3436 defer w .Flush ()
3537
36- fmtColumns := "%s\t %v\t %s\t %s\n "
37- fmt .Fprintf (w , fmtColumns , "VERSION" , "SEQUENCE" , "STATUS" , "SOURCE" )
38+ fmtColumns := "%s\t %v\t %s\t %s\t %s \t %v \ n "
39+ fmt .Fprintf (w , fmtColumns , "VERSION" , "SEQUENCE" , "STATUS" , "SOURCE" , "CHANNEL ID" , "CHANNEL SEQUENCE" )
3840 for _ , version := range versions {
39- fmt .Fprintf (w , fmtColumns , version .VersionLabel , version .Sequence , version .Status , version .Source )
41+ fmt .Fprintf (w , fmtColumns , version .VersionLabel , version .Sequence , version .Status , version .Source , version . ChannelID , version . ChannelSequence )
4042 }
4143}
0 commit comments