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

Method from

atomic-cli/src/commands/status.rs:1269–1276  ·  view source on GitHub ↗
(entry: &atomic_repository::status::FileStatusEntry)

Source from the content-addressed store, hash-verified

1267
1268impl From<&atomic_repository::status::FileStatusEntry> for JsonStatusEntry {
1269 fn from(entry: &atomic_repository::status::FileStatusEntry) -> Self {
1270 Self {
1271 path: json_path(entry.path()),
1272 status: json_status_name(entry.status()),
1273 code: entry.status().short_code().to_string(),
1274 details: entry.details().map(str::to_string),
1275 }
1276 }
1277}
1278
1279fn json_path(path: &std::path::Path) -> String {

Callers

nothing calls this directly

Calls 6

json_pathFunction · 0.85
json_status_nameFunction · 0.85
detailsMethod · 0.80
pathMethod · 0.45
statusMethod · 0.45
short_codeMethod · 0.45

Tested by

no test coverage detected