Skip to content

Commit

Permalink
fix(prqlc): Slightly better prompt
Browse files Browse the repository at this point in the history
Thanks to @eitsupi for PRQL#2594. Here are a couple of suggestions for small improvements to the prompt to flup.
  • Loading branch information
max-sixty committed May 22, 2023
1 parent 6465777 commit 15ba6f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prql-compiler/prqlc/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?;
Expand Down

0 comments on commit 15ba6f7

Please sign in to comment.