Skip to content

Commit a675d23

Browse files
committed
Add ascii art on server startup banner
1 parent 7d12067 commit a675d23

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

server/src/banner.rs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,30 @@ use crate::utils::uid::Uid;
2323
use crate::{option::Config, storage::StorageMetadata};
2424

2525
pub fn print(config: &Config, meta: StorageMetadata) {
26+
print_ascii_art();
2627
let scheme = config.parseable.get_scheme();
2728
status_info(config, &scheme, meta.deployment_id);
2829
storage_info(config);
2930
about::print();
3031
println!();
3132
}
3233

34+
fn print_ascii_art() {
35+
let ascii_name = r#"
36+
`7MM"""Mq. *MM `7MM
37+
MM `MM. MM MM
38+
MM ,M9 ,6"Yb. `7Mb,od8 ,pP"Ybd .gP"Ya ,6"Yb. MM,dMMb. MM .gP"Ya
39+
MMmmdM9 8) MM MM' "' 8I `" ,M' Yb 8) MM MM `Mb MM ,M' Yb
40+
MM ,pm9MM MM `YMMMa. 8M"""""" ,pm9MM MM M8 MM 8M""""""
41+
MM 8M MM MM L. I8 YM. , 8M MM MM. ,M9 MM YM. ,
42+
.JMML. `Moo9^Yo..JMML. M9mmmP' `Mbmmd' `Moo9^Yo. P^YbmdP' .JMML. `Mbmmd'
43+
"#;
44+
45+
eprint!("{}", ascii_name);
46+
eprintln!("
47+
Welcome to Parseable Server!");
48+
}
49+
3350
fn status_info(config: &Config, scheme: &str, id: Uid) {
3451
let url = format!("\"{}://{}\"", scheme, config.parseable.address).underlined();
3552
let mut credentials =
@@ -42,10 +59,10 @@ fn status_info(config: &Config, scheme: &str, id: Uid) {
4259
eprintln!(
4360
"
4461
{}
45-
Running at: {}
62+
URL: {}
4663
Credentials: {}
4764
Deployment UID: \"{}\"",
48-
"Parseable Server".to_string().bold(),
65+
"Server:".to_string().bold(),
4966
url,
5067
credentials,
5168
id.to_string(),

0 commit comments

Comments
 (0)