Skip to content

Commit

Permalink
add interactive terminal stub for windows
Browse files Browse the repository at this point in the history
Summary: Split stub on windows and other platforms to implement it for windows in the next diff

Reviewed By: ezgicicek

Differential Revision: D69985906

fbshipit-source-id: 33b77ae03257b17f5874892926d37d3fcf38ece8
  • Loading branch information
Yury Samkevich authored and facebook-github-bot committed Feb 21, 2025
1 parent 8f1e3c5 commit 460a3e6
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion app/buck2_client_ctx/src/console_interaction_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,22 @@ mod interactive_terminal {
}
}

#[cfg(not(unix))]
#[cfg(windows)]
mod interactive_terminal {
pub struct InteractiveTerminal;

impl InteractiveTerminal {
pub fn enable() -> buck2_error::Result<Option<Self>> {
Ok(None)
}

pub fn disable(&mut self) -> buck2_error::Result<()> {
Ok(())
}
}
}

#[cfg(not(any(unix, windows)))]
mod interactive_terminal {
pub struct InteractiveTerminal;

Expand Down

0 comments on commit 460a3e6

Please sign in to comment.