Use a shorter startup message on skysh

The "huge" welcome is maybe not what we exactly want right on startup.
Hence, we will switch to using a shorter message.
next
Sayan Nandan 3 years ago
parent fe5319bdea
commit 6ea2f33840
No known key found for this signature in database
GPG Key ID: 2932644755A97720

@ -74,6 +74,12 @@ Apart from these, you can use the following shell commands:
With Skytable in your hands, the sky is the only limit on what you can create!"#; With Skytable in your hands, the sky is the only limit on what you can create!"#;
const SKY_WELCOME: &str = "
Welcome to Skytable's interactive shell (REPL) environment. For usage and help
within the shell, you can run `!help` anytime. Now that you have Skytable in
your hands, the sky is the only limit on what you can create!
";
/// This creates a REPL on the command line and also parses command-line arguments /// This creates a REPL on the command line and also parses command-line arguments
/// ///
/// Anything that is entered following a return, is parsed into a query and is /// Anything that is entered following a return, is parsed into a query and is
@ -119,7 +125,7 @@ pub async fn start_repl() {
Ok(_) => {} Ok(_) => {}
Err(e) => match e { Err(e) => match e {
rustyline::error::ReadlineError::Io(e) if e.kind() == std::io::ErrorKind::NotFound => { rustyline::error::ReadlineError::Io(e) if e.kind() == std::io::ErrorKind::NotFound => {
println!("{}", HELP_TEXT) println!("{}", SKY_WELCOME)
} }
_ => fatal!("Failed to read history file with error: {}", e), _ => fatal!("Failed to read history file with error: {}", e),
}, },

Loading…
Cancel
Save