@@ -31,31 +31,26 @@ pub fn print(config: &Config, meta: StorageMetadata) {
3131}
3232
3333fn status_info ( config : & Config , scheme : & str , id : Uid ) {
34- let url = format ! ( "{}://{}" , scheme, config. parseable. address) . underlined ( ) ;
34+ let url = format ! ( "\" {}://{}\" " , scheme, config. parseable. address)
35+ . underlined ( ) ;
36+ let mut credentials =
37+ String :: from ( "\" As set in P_USERNAME and P_PASSWORD environment variables\" " ) ;
38+
3539 if config. is_default_creds ( ) {
36- eprintln ! (
37- "
40+ credentials = "\" Using default creds admin, admin. Please set credentials with P_USERNAME and P_PASSWORD.\" " . red ( ) . to_string ( ) ;
41+ }
42+
43+ eprintln ! (
44+ "
3845 {}
39- Running at: \" {} \"
46+ Running at: {}
4047 Credentials: {}
4148 Deployment UID: \" {}\" " ,
4249 "Parseable Server" . to_string( ) . bold( ) ,
4350 url,
44- " \" Using default creds admin, admin. Please set credentials with P_USERNAME and P_PASSWORD. \" " . to_string ( ) . red ( ) ,
45- id. to_string( )
51+ credentials,
52+ id. to_string( ) ,
4653 ) ;
47- } else {
48- eprintln ! (
49- "
50- {}
51- Running at: \" {}\"
52- Credentials: \" As set in P_USERNAME and P_PASSWORD environment variables\"
53- Deployment UID: \" {}\" " ,
54- "Parseable Server" . to_string( ) . bold( ) ,
55- url,
56- id. to_string( ) ,
57- ) ;
58- }
5954}
6055
6156fn storage_info ( config : & Config ) {
@@ -105,7 +100,7 @@ pub mod about {
105100 Version: \" {}\"
106101 Commit: \" {}\"
107102 Docs: \" https://www.parseable.io/docs/introduction\" " ,
108- "About:" . to_string( ) . blue ( ) . bold( ) ,
103+ "About:" . to_string( ) . bold( ) ,
109104 current_version,
110105 commit_hash
111106 ) ;
0 commit comments