From 341240740a82d787aa014def658060650673beaf Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Thu, 25 Jul 2024 15:24:20 +0300 Subject: [PATCH] cli: Improve CLI prompt Let's print out Limbo version at CLI start and change the prompt to have "limbo" prefix. --- cli/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/main.rs b/cli/main.rs index 856bddbf7..678bc4afd 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -53,9 +53,10 @@ fn main() -> anyhow::Result<()> { if history_file.exists() { rl.load_history(history_file.as_path())?; } - println!("Welcome to Limbo SQL shell!"); + println!("Limbo v{}", env!("CARGO_PKG_VERSION")); + println!("Enter \".help\" for usage hints."); loop { - let readline = rl.readline("\x1b[90m>\x1b[0m "); + let readline = rl.readline("limbo> "); match readline { Ok(line) => { rl.add_history_entry(line.to_owned())?;