INNER CODE UNIT · Rust

iterate_stdin

Drew-Alleman/DataSurgeon · src/main.rs:714

    fn iterate_stdin(&mut self) -> () {
        if !self.matches.get_one::<bool>("suppress").unwrap_or(&false) {
            println!("[*] Reading standard input. If you meant to analyze a file use 'ds -f <FILE>' (ctrl+c to exit)");
        }
        let stdin = io::stdin();
        let reader = stdin.lock();
        let regex_map = self.build_regex_query();
        for line in reader.lines() {
            self.handle(&line, &regex_map);
        }

    }

    // Displays how long the program took
    //
    // # Arguments
    //
    // * `f32` - Time that has elapsed

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…