Skip to content

Commit

Permalink
add logo ascii art (#3269)
Browse files Browse the repository at this point in the history
* add logo ascii art

Signed-off-by: LemonHX <lemonhx@lemonhx.tech>
  • Loading branch information
LemonHX authored Mar 9, 2022
1 parent 4366b05 commit 271cc37
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions cmd/starcoin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ fn run() -> Result<()> {
move |_app, _opt, state| {
info!("Start console, disable stderr output.");
logger_handle.disable_stderr();
print_logo();
(*scmd::DEFAULT_CONSOLE_CONFIG, Some(state.history_file()))
},
|_, _, state| {
Expand All @@ -121,6 +122,40 @@ fn run() -> Result<()> {
add_command(context).exec()
}

#[rustfmt::skip]
#[allow(clippy::print_literal)]
fn print_logo(){
println!("{}{}{}","\x1b[34;1m",r#"
(%&&&&(%&%( &#
,#%%%&%%%#/ (%&&%
%#%#%%%%#&&% %&
/ %%% #&
&#%%%#%%%%# *&%
(#%%%#/ %%%%%%# #&%
#%#%%#&& #%%%%%%%( &%%&
(#%%## #%%%%%%%%%/ *%%
#%%%&#%%##&&&&%%%(%%%%%%%%%%%&&&&&&&& &% (&#/#
((##%%%%%%%%%%%%%%%%%%%%%%%%&&&&&&&%% ####
###%#(& &#%%%%%%%%%%%%%%%%%%%%%&&&&%##&(%&%
(#%## (#%%%%%%%%%%%%%%%%%%&%#(#%%#
(###(% &&#%%%%%%%%%%%%%%&%%#&&
#### %%%%%%%%%%%%( %%
/###/ #%%%%%%%%#%%# %%#
/###( (%%%%%%#%%%##%%%( *%%#
###( (%%%%###&# %&#%%&(%%%
(##(& &#%#(# %%&&%
(###%# (%%%#((& &&%#
(#%%%%%%#(
██████╗████████╗ █████╗ ██████╗ █████╗ █████╗ ██╗███╗ ██╗
██╔════╝╚══██╔══╝██╔══██╗██╔══██╗██╔══██╗██╔══██╗██║████╗ ██║
╚█████╗ ██║ ███████║██████╔╝██║ ╚═╝██║ ██║██║██╔██╗██║
╚═══██╗ ██║ ██╔══██║██╔══██╗██║ ██╗██║ ██║██║██║╚████║
██████╔╝ ██║ ██║ ██║██║ ██║╚█████╔╝╚█████╔╝██║██║ ╚███║
╚═════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚════╝ ╚════╝ ╚═╝╚═╝ ╚══╝
"#,"\x1b[0m");
}

fn main() {
match run() {
Ok(()) => {}
Expand Down

0 comments on commit 271cc37

Please sign in to comment.