Skip to content

Commit 460a3e6

Browse files
Yury Samkevichfacebook-github-bot
authored andcommitted
add interactive terminal stub for windows
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
1 parent 8f1e3c5 commit 460a3e6

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

app/buck2_client_ctx/src/console_interaction_stream.rs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,22 @@ mod interactive_terminal {
109109
}
110110
}
111111

112-
#[cfg(not(unix))]
112+
#[cfg(windows)]
113+
mod interactive_terminal {
114+
pub struct InteractiveTerminal;
115+
116+
impl InteractiveTerminal {
117+
pub fn enable() -> buck2_error::Result<Option<Self>> {
118+
Ok(None)
119+
}
120+
121+
pub fn disable(&mut self) -> buck2_error::Result<()> {
122+
Ok(())
123+
}
124+
}
125+
}
126+
127+
#[cfg(not(any(unix, windows)))]
113128
mod interactive_terminal {
114129
pub struct InteractiveTerminal;
115130

0 commit comments

Comments
 (0)