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

Method resolve_body

atomic-cli/src/commands/vault/intent.rs:398–411  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

396
397impl IntentUpdate {
398 fn resolve_body(&self) -> CliResult<Option<String>> {
399 if let Some(ref body) = self.body {
400 return Ok(Some(body.clone()));
401 }
402 if self.body_stdin {
403 use std::io::Read;
404 let mut content = String::new();
405 std::io::stdin()
406 .read_to_string(&mut content)
407 .map_err(CliError::Io)?;
408 return Ok(Some(content));
409 }
410 Ok(None)
411 }
412}
413
414impl Command for IntentUpdate {

Callers 1

runMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected