MCPcopy Create free account
hub / github.com/NationalSecurityAgency/TraceAnalysis / open_input

Function open_input

dynamic-trace/src/bin/tm-print.rs:265–270  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

263}
264
265fn open_input(input: &str) -> io::Result<Box<dyn Read>> {
266 if input == "-" {
267 return Ok(Box::new(io::stdin().lock()));
268 }
269 Ok(Box::new(fs::File::open(input)?))
270}
271
272fn open_output(output: &str) -> io::Result<Box<dyn Write>> {
273 if output == "-" {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected