We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a21b83 commit ec67482Copy full SHA for ec67482
pkg/cli/credential.go
@@ -93,7 +93,7 @@ func (c *Credential) Run(_ *cobra.Command, _ []string) error {
93
expires := "never"
94
if cred.ExpiresAt != nil {
95
if !cred.IsExpired() {
96
- expires = cred.ExpiresAt.Sub(time.Now()).Truncate(time.Second).String()
+ expires = time.Until(*cred.ExpiresAt).Truncate(time.Second).String()
97
} else {
98
expires = "expired"
99
}
0 commit comments