|
@ -1,6 +1,6 @@ |
|
|
use crate::builtins::BuiltinConfig;
|
|
|
use crate::builtins::BuiltinConfig;
|
|
|
use crate::prompt::Prompt;
|
|
|
use crate::prompt::Prompt;
|
|
|
use colored::*;
|
|
|
|
|
|
|
|
|
use colored::Colorize;
|
|
|
use execute::interpret;
|
|
|
use execute::interpret;
|
|
|
use rustyline::config::Configurer;
|
|
|
use rustyline::config::Configurer;
|
|
|
use rustyline::error::ReadlineError;
|
|
|
use rustyline::error::ReadlineError;
|
|
@ -26,7 +26,7 @@ fn main() -> Result<()> { |
|
|
let mut prompt = Prompt::new();
|
|
|
let mut prompt = Prompt::new();
|
|
|
let mut config = BuiltinConfig::new();
|
|
|
let mut config = BuiltinConfig::new();
|
|
|
|
|
|
|
|
|
println!("Welcome, {}.", username().bright_green().bold());
|
|
|
|
|
|
|
|
|
println!("\nWelcome, {}.", username().bright_green().bold());
|
|
|
|
|
|
|
|
|
loop {
|
|
|
loop {
|
|
|
let readline = rl.readline(&prompt.get_prompt());
|
|
|
let readline = rl.readline(&prompt.get_prompt());
|
|
|