@@ -76,6 +76,7 @@ func (cmd *AccountInspectCommand) Run() error {
7676type outputAccount struct {
7777 AccountType string
7878 AccountName string
79+ CreatedAt string `json:",omitempty"`
7980 PublicAccountKey []byte `json:",omitempty"`
8081}
8182
@@ -85,7 +86,6 @@ type outputUser struct {
8586 FullName string
8687 Email string `json:",omitempty"`
8788 EmailVerified bool `json:",omitempty"`
88- CreatedAt string `json:",omitempty"`
8989 outputAccount
9090}
9191
@@ -95,10 +95,10 @@ func newOutputUser(user *api.User, timeFormatter TimeFormatter) *outputUser {
9595 FullName : user .FullName ,
9696 Email : user .Email ,
9797 EmailVerified : user .EmailVerified ,
98- CreatedAt : timeFormatter .Format (user .CreatedAt .Local ()),
9998 outputAccount : outputAccount {
10099 AccountType : accountTypeUser ,
101100 AccountName : user .Username ,
101+ CreatedAt : timeFormatter .Format (user .CreatedAt .Local ()),
102102 PublicAccountKey : user .PublicKey ,
103103 },
104104 }
@@ -114,10 +114,10 @@ type outputService struct {
114114func newOutputService (service * api.Service , account * api.Account , timeFormatter TimeFormatter ) * outputService {
115115 return & outputService {
116116 Description : service .Description ,
117- CreatedAt : timeFormatter .Format (service .CreatedAt .Local ()),
118117 outputAccount : outputAccount {
119118 AccountType : accountTypeService ,
120119 AccountName : service .ServiceID ,
120+ CreatedAt : timeFormatter .Format (service .CreatedAt .Local ()),
121121 PublicAccountKey : account .PublicKey ,
122122 },
123123 }
0 commit comments