Skip to content

Commit

Permalink
fix(prqlc): Slightly better prompt (#2603)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty authored May 22, 2023
1 parent 8b24303 commit c8d63c1
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 c8d63c1

Please sign in to comment.