Method
write_text
(
&self,
path: &crate::workspace::WorkspacePath,
content: &str,
)
Source from the content-addressed store, hash-verified
| 88 | } |
| 89 | |
| 90 | async fn write_text( |
| 91 | &self, |
| 92 | path: &crate::workspace::WorkspacePath, |
| 93 | content: &str, |
| 94 | ) -> crate::workspace::WorkspaceResult<crate::workspace::WorkspaceWriteOutcome> { |
| 95 | self.insert(path.as_str(), content); |
| 96 | Ok(crate::workspace::WorkspaceWriteOutcome { |
| 97 | bytes: content.len(), |
| 98 | lines: content.lines().count(), |
| 99 | }) |
| 100 | } |
| 101 | |
| 102 | async fn list_dir( |
| 103 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected