MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / read_input

Function read_input

atomic-cli/src/commands/identity/delegation.rs:625–634  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

623}
624
625fn read_input(path: &str) -> CliResult<String> {
626 if path == "-" {
627 use std::io::Read;
628 let mut buf = String::new();
629 std::io::stdin().read_to_string(&mut buf)?;
630 Ok(buf)
631 } else {
632 Ok(std::fs::read_to_string(path)?)
633 }
634}
635
636#[cfg(test)]
637mod tests {

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected