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

Function unavailable

atomic-repository/src/change_source/fsmonitor.rs:157–168  ·  view source on GitHub ↗
(operation: &str, output: &CommandOutput)

Source from the content-addressed store, hash-verified

155}
156
157fn unavailable(operation: &str, output: &CommandOutput) -> ChangeSourceError {
158 let detail = String::from_utf8_lossy(&output.stderr);
159 ChangeSourceError::Unavailable(format!(
160 "{operation} exited with {}{}",
161 output.status,
162 if detail.trim().is_empty() {
163 String::new()
164 } else {
165 format!(": {}", detail.trim())
166 }
167 ))
168}
169
170fn parse_version(version: &str) -> Option<(u64, u64, u64)> {
171 let mut parts = version.split_whitespace().next()?.split('.');

Callers 2

ensure_availableMethod · 0.70
changesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected