feat(main): improve prompt symbol
This commit is contained in:
		
					parent
					
						
							
								e9bee3c114
							
						
					
				
			
			
				commit
				
					
						b9307b7b5d
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -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) => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue