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

Method ensure_record_file_options

atomic-cli/src/service/mod.rs:590–603  ·  view source on GitHub ↗

Check before `record --all` stages any files on an older Reactor.

(&self)

Source from the content-addressed store, hash-verified

588
589 /// Check before `record --all` stages any files on an older Reactor.
590 pub fn ensure_record_file_options(&self) -> CliResult<()> {
591 self.call(move |backend| async move {
592 match backend {
593 Backend::Local(_) => Ok(()),
594 Backend::Reactor(channel) => {
595 let capabilities = pb::daemon_service_client::DaemonServiceClient::new(channel)
596 .get_capabilities(pb::GetCapabilitiesRequest {})
597 .await?
598 .into_inner();
599 require_record_file_options(&capabilities)
600 }
601 }
602 })
603 }
604
605 pub fn remove_files(
606 &self,

Callers 1

recordFunction · 0.80

Calls 4

get_capabilitiesMethod · 0.80
callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected