mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Change repl behavior and instructions around quit
This commit is contained in:
parent
462657def8
commit
c5aa453071
1 changed files with 3 additions and 6 deletions
|
@ -42,7 +42,7 @@ pub const WELCOME_MESSAGE: &str = concatcp!(
|
|||
END_COL,
|
||||
"\n\n"
|
||||
);
|
||||
pub const INSTRUCTIONS: &str = "Enter an expression, or :help, or :exit/:q.\n";
|
||||
pub const INSTRUCTIONS: &str = "Enter an expression, or :help, or :q to quit.\n";
|
||||
pub const PROMPT: &str = concatcp!("\n", BLUE, "»", END_COL, " ");
|
||||
pub const CONT_PROMPT: &str = concatcp!(BLUE, "…", END_COL, " ");
|
||||
|
||||
|
@ -423,12 +423,9 @@ pub fn main() -> io::Result<()> {
|
|||
}
|
||||
}
|
||||
":help" => {
|
||||
println!("Use :exit or :q to exit.");
|
||||
println!("Use :exit or :quit or :q to exit.");
|
||||
}
|
||||
":exit" => {
|
||||
break;
|
||||
}
|
||||
":q" => {
|
||||
":exit" | ":quit" | ":q" => {
|
||||
break;
|
||||
}
|
||||
_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue