From dbdc004c16c3ca4bcba22beb7c20763db3d0ca09 Mon Sep 17 00:00:00 2001 From: Marco Granelli Date: Wed, 16 Nov 2022 18:46:04 +0100 Subject: [PATCH] Improves CLI messages --- phase2-cli/src/ascii_logo.rs | 26 +++++++++++++------------- phase2-cli/src/bin/namada-ts.rs | 4 ++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/phase2-cli/src/ascii_logo.rs b/phase2-cli/src/ascii_logo.rs index 2e33d1e4..e9e89e6a 100644 --- a/phase2-cli/src/ascii_logo.rs +++ b/phase2-cli/src/ascii_logo.rs @@ -21,17 +21,17 @@ pub const ASCII_LOGO: &str = r" "; #[rustfmt::skip] -pub const ASCII_CONTRIBUTION_DONE: &str = " - _________________ - | |_____ __ - | Hello Privacy! | |__| |_________ - |_________________| |::| | / - /\\**/\\ | \\._____|::|__| < - ( o_o )_ | \\::/ \\.________\\ - (u--u \\_) | - (||___ )==\\ - ,dP\"/b/=( /P\"/b\\ - |8 || 8\\=== || 8 +pub const ASCII_CONTRIBUTION_DONE: &str = r#" + ___________________________ + | |____ __ + | Hello Interchain Privacy! | |__| |________ + |___________________________| |::| | / + /\**/\ | \.____|::|__| < + ( o_o )_ | \::/ \______\ + (u--u \_) | + (||___ )==\ + ,dP"/b/=( /P"/b\ + |8 || 8\=== || 8 `b, ,P `b, ,P - \"\"\"` \"\"\"` -"; + """` """` +"#; diff --git a/phase2-cli/src/bin/namada-ts.rs b/phase2-cli/src/bin/namada-ts.rs index 8f201c31..8a36f62b 100644 --- a/phase2-cli/src/bin/namada-ts.rs +++ b/phase2-cli/src/bin/namada-ts.rs @@ -511,7 +511,7 @@ async fn contribution_loop( .expect(&format!("{}", "Couldn't read the contributor info file".red().bold())); let contrib_info: ContributionInfo = serde_json::from_slice(&content).unwrap(); - println!("{}\n{}\n\nI've contributed to @namadanetwork Trusted Setup Ceremony at round #{} with the contribution hash {}. Let's enable interchain privacy. #InterchainPrivacy\n\n{}", + println!("{}\n{}\n\nI've contributed to @namadanetwork #NamadaTrustedSetup at round #{} with the contribution hash {}. Let's enable #interchain privacy.\n\n{}", "Done! Thank you for your contribution! If your contribution is valid, it will appear on ceremony.namada.net. Check it out!".green().bold(), "If you’d like to share that you contributed with your frens and the world, you can use:".bright_cyan(), round_height, @@ -532,7 +532,7 @@ async fn contribution_loop( } else { loop { let attestation_url = - io::get_user_input("Please enter a valid url for your attestation:".bright_yellow(), None) + io::get_user_input("Please enter a valid url for your attestation (starting with http or https):".bright_yellow(), None) .unwrap(); if Url::parse(attestation_url.as_str()).is_ok() { // Send attestation to coordinator