From 15ba6f70fd6f6263f9fb3ef9ab6c41a99497c5c2 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Mon, 22 May 2023 11:46:16 -0700 Subject: [PATCH] fix(prqlc): Slightly better prompt Thanks to @eitsupi for #2594. Here are a couple of suggestions for small improvements to the prompt to flup. --- prql-compiler/prqlc/src/cli.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prql-compiler/prqlc/src/cli.rs b/prql-compiler/prqlc/src/cli.rs index c60e13cb27db..073e39d5691d 100644 --- a/prql-compiler/prqlc/src/cli.rs +++ b/prql-compiler/prqlc/src/cli.rs @@ -292,7 +292,10 @@ impl Command { // it's confusing whether it's waiting for input or not. This // offers the prompt. if input.is_stdin() && atty::is(atty::Stream::Stdin) { - println!("# Enter PRQL, then press ctrl-d or ctrl-z (windows) to compile:\n"); + #[cfg(unix)] + eprintln!("Enter PRQL, then press ctrl-d to compile:\n"); + #[cfg(windows)] + eprintln!("Enter PRQL, then press ctrl-z to compile:\n"); } let file_tree = input.read_to_tree()?;