shelly-shell 0.5.2

A Rust based Unix style shell with a typed and structured language syntax.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(unix)]
mod unix;

#[cfg(unix)]
pub use crate::runtime::signals::unix::{ InteractiveInterrupts, take_interrupt };

#[cfg(not(unix))]
pub struct InteractiveInterrupts;

#[cfg(not(unix))]
impl InteractiveInterrupts
{
    pub fn install() -> std::io::Result<Self> { Ok(Self) }
}

#[cfg(not(unix))]
pub fn take_interrupt() -> bool { false }