Skip to content

Commit eb13ce6

Browse files
authored
chore(releases): add exception field (#61)
1 parent 662fba3 commit eb13ce6

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

cmd/releases.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ func (d *DryccCmd) ReleasesInfo(appID string, version int) error {
6262
table.Append([]string{"Created:", d.formatTime(r.Created)})
6363
table.Append([]string{"Updated:", d.formatTime(r.Updated)})
6464
table.Append([]string{"Summary:", d.wrapString(r.Summary)})
65+
if r.Exception != "" {
66+
table.Append([]string{"Exception:", d.wrapString(r.Exception)})
67+
}
6568
table.Append([]string{"Version:", fmt.Sprintf("v%v", r.Version)})
6669
table.Render()
6770
return nil

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22
55
require (
66
github.com/containerd/console v1.0.4
77
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
8-
github.com/drycc/controller-sdk-go v0.0.0-20240826030716-d88e1466a39a
8+
github.com/drycc/controller-sdk-go v0.0.0-20240826083511-133cdf53297d
99
github.com/drycc/pkg v0.0.0-20240225112316-78fc9239f51f
1010
github.com/minio/selfupdate v0.6.0
1111
github.com/olekukonko/tablewriter v0.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
77
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
88
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815 h1:bWDMxwH3px2JBh6AyO7hdCn/PkvCZXii8TGj7sbtEbQ=
99
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
10-
github.com/drycc/controller-sdk-go v0.0.0-20240826030716-d88e1466a39a h1:wHuz+RT4RX8J95CD8daSe0qo+h+iRyjHTIFymxIM0KE=
11-
github.com/drycc/controller-sdk-go v0.0.0-20240826030716-d88e1466a39a/go.mod h1:n6eQe1irJqjwLo/7t9+Dhdv6faSESQN+ATnZRBP3/Uc=
10+
github.com/drycc/controller-sdk-go v0.0.0-20240826083511-133cdf53297d h1:hzwt73EpOkRLrdF64MZ6gl5APs065QNR5Ucl7TXx9DQ=
11+
github.com/drycc/controller-sdk-go v0.0.0-20240826083511-133cdf53297d/go.mod h1:n6eQe1irJqjwLo/7t9+Dhdv6faSESQN+ATnZRBP3/Uc=
1212
github.com/drycc/pkg v0.0.0-20240225112316-78fc9239f51f h1:kgjvUQJeAszDoU1Vo4vTTE92KI8Av3JPb6Qn890niXg=
1313
github.com/drycc/pkg v0.0.0-20240225112316-78fc9239f51f/go.mod h1:n+QxGif6ha9CEoxVnlipxb9IdmerybcUSzTEDFkvjiA=
1414
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=

0 commit comments

Comments
 (0)