nushell/crates/nu-command/src/system
Reilly Wood e215fbbd08
Add helper method to check whether ctrl+c was pressed, adopt it (#7482)
I've been working on streaming and pipeline interruption lately. It was
bothering me that checking ctrl+c (something we want to do often) always
requires a bunch of boilerplate like:
```rust
use std::sync::atomic::Ordering;

if let Some(ctrlc) = &engine_state.ctrlc {
     if ctrlc.load(Ordering::SeqCst) {
          ...
```
I added a helper method to cut that down to:

```rust
if nu_utils::ctrl_c::was_pressed(&engine_state.ctrlc) {
    ...
```
2022-12-15 09:39:24 -08:00
..
benchmark.rs add input_output_types() to benchmark,cd and config reset (#7455) 2022-12-13 06:10:55 -06:00
complete.rs fix stdout hangged on (#6715) 2022-10-15 14:29:29 -05:00
exec.rs Make external command substitution works friendly(like fish shell, trailing ending newlines) (#7156) 2022-11-23 16:51:57 +13:00
mod.rs add a new command to query the registry on windows (#6670) 2022-10-07 13:54:36 -05:00
nu_check.rs Move from source to source-env (#6277) 2022-09-01 08:32:56 +12:00
ps.rs add a fair amount ofsearch terms (#6090) 2022-07-21 06:29:41 -05:00
registry_query.rs fix semicolon doesn't work for some commands (#7373) 2022-12-06 19:48:39 -08:00
run_external.rs Add helper method to check whether ctrl+c was pressed, adopt it (#7482) 2022-12-15 09:39:24 -08:00
sys.rs fix sys info mem usage (#6607) 2022-09-23 11:47:52 -05:00
which_.rs Change how to identify custom comamnd (#6187) 2022-08-02 18:40:07 -05:00