@@ -123,46 +123,25 @@ func outputResult(p *print.Printer, outputFormat string, backup *iaas.Backup) er
123123
124124 default :
125125 table := tables .NewTable ()
126- table .AddRow (
127- "ID" ,
128- utils .PtrString (backup .Id ),
129- )
130- table .AddRow (
131- "NAME" ,
132- utils .PtrString (backup .Name ),
133- )
134- table .AddRow (
135- "SIZE" ,
136- utils .PtrByteSizeDefault ((* int64 )(backup .Size ), "" ),
137- )
138- table .AddRow (
139- "STATUS" ,
140- utils .PtrString (backup .Status ),
141- )
142- table .AddRow (
143- "SNAPSHOT ID" ,
144- utils .PtrString (backup .SnapshotId ),
145- )
146- table .AddRow (
147- "VOLUME ID" ,
148- utils .PtrString (backup .VolumeId ),
149- )
150- table .AddRow (
151- "AVAILABILITY ZONE" ,
152- utils .PtrString (backup .AvailabilityZone ),
153- )
154- table .AddRow (
155- "LABELS" ,
156- utils .PtrStringDefault (backup .Labels , "" ),
157- )
158- table .AddRow (
159- "CREATED AT" ,
160- utils .ConvertTimePToDateTimeString (backup .CreatedAt ),
161- )
162- table .AddRow (
163- "UPDATED AT" ,
164- utils .ConvertTimePToDateTimeString (backup .UpdatedAt ),
165- )
126+ table .AddRow ("ID" , utils .PtrString (backup .Id ))
127+ table .AddSeparator ()
128+ table .AddRow ("NAME" , utils .PtrString (backup .Name ))
129+ table .AddSeparator ()
130+ table .AddRow ("SIZE" , utils .PtrByteSizeDefault ((* int64 )(backup .Size ), "" ))
131+ table .AddSeparator ()
132+ table .AddRow ("STATUS" , utils .PtrString (backup .Status ))
133+ table .AddSeparator ()
134+ table .AddRow ("SNAPSHOT ID" , utils .PtrString (backup .SnapshotId ))
135+ table .AddSeparator ()
136+ table .AddRow ("VOLUME ID" , utils .PtrString (backup .VolumeId ))
137+ table .AddSeparator ()
138+ table .AddRow ("AVAILABILITY ZONE" , utils .PtrString (backup .AvailabilityZone ))
139+ table .AddSeparator ()
140+ table .AddRow ("LABELS" , utils .PtrStringDefault (backup .Labels , "" ))
141+ table .AddSeparator ()
142+ table .AddRow ("CREATED AT" , utils .ConvertTimePToDateTimeString (backup .CreatedAt ))
143+ table .AddSeparator ()
144+ table .AddRow ("UPDATED AT" , utils .ConvertTimePToDateTimeString (backup .UpdatedAt ))
166145
167146 err := table .Display (p )
168147 if err != nil {
0 commit comments