feat(main): improve prompt symbol

This commit is contained in:
xeruf 2024-11-09 19:20:12 +01:00
parent e9bee3c114
commit b9307b7b5d

View file

@ -346,10 +346,11 @@ async fn main() -> Result<()> {
println!(); println!();
let tasks = relays.get(&selected_relay).unwrap(); let tasks = relays.get(&selected_relay).unwrap();
let prompt = format!( let prompt = format!(
"{} {}{}) ", "{} {}{}{}",
selected_relay.as_ref().map_or(LOCAL_RELAY_NAME.to_string(), |url| url.to_string()).dimmed(), selected_relay.as_ref().map_or(LOCAL_RELAY_NAME.to_string(), |url| url.to_string()).dimmed(),
tasks.get_task_path(tasks.get_position()).bold(), tasks.get_task_path(tasks.get_position()).bold(),
tasks.get_prompt_suffix().italic(), tasks.get_prompt_suffix().italic(),
" ".dimmed()
); );
match rl.readline(&prompt) { match rl.readline(&prompt) {
Ok(input) => { Ok(input) => {