boxxy 0.14.0

Linkable sandbox explorer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::Parser;
use crate::errors::*;
use crate::{Shell, Arguments};

#[derive(Debug, Parser)]
#[clap(name = "fds")]
pub struct Args {
}

pub fn fds(sh: &mut Shell, args: Arguments) -> Result<()> {
    let _args = Args::try_parse_from(args)?;

    for i in close_fds::iter_open_fds(0) {
        shprintln!(sh, "{:?}", i);
    }

    Ok(())
}