@@ -4,8 +4,8 @@ use std::path::Path;
44
55use crate :: api:: { ApiClient , ApiError } ;
66use crate :: output:: {
7- extract_pagination, format_bool, format_option, print_json, print_key_value, print_message ,
8- print_pagination , print_table , OutputFormat ,
7+ OutputFormat , extract_pagination, format_bool, format_option, print_json, print_key_value,
8+ print_message , print_pagination , print_table ,
99} ;
1010
1111#[ derive( Debug , Serialize ) ]
@@ -101,7 +101,10 @@ pub fn list(
101101 } )
102102 . collect ( ) ;
103103
104- print_table ( vec ! [ "ID" , "Name" , "Status" , "Production" , "Platform Domain" ] , rows) ;
104+ print_table (
105+ vec ! [ "ID" , "Name" , "Status" , "Production" , "Platform Domain" ] ,
106+ rows,
107+ ) ;
105108
106109 if let Some ( ( current, last, total) ) = extract_pagination ( & response) {
107110 print_pagination ( current, last, total) ;
@@ -720,10 +723,7 @@ pub fn db_promote_status(
720723
721724 let data = & response[ "data" ] ;
722725 print_key_value ( vec ! [
723- (
724- "Promote ID" ,
725- data[ "id" ] . as_str( ) . unwrap_or( "-" ) . to_string( ) ,
726- ) ,
726+ ( "Promote ID" , data[ "id" ] . as_str( ) . unwrap_or( "-" ) . to_string( ) ) ,
727727 ( "Status" , data[ "status" ] . as_str( ) . unwrap_or( "-" ) . to_string( ) ) ,
728728 (
729729 "Duration (ms)" ,
0 commit comments