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

Function repo

atomic-cli/src/commands/memory/list.rs:557–562  ·  view source on GitHub ↗

A fresh repo+vault.

()

Source from the content-addressed store, hash-verified

555
556 /// A fresh repo+vault.
557 fn repo() -> (Repository, tempfile::TempDir) {
558 let dir = tempdir().unwrap();
559 let repo = Repository::init(dir.path()).unwrap();
560 repo.init_vault().unwrap();
561 (repo, dir)
562 }
563
564 /// Store a memory via the GENERIC vault path (as `memory write`/attest do).
565 fn store_memory(repo: &Repository, id: &str, kind: &str, about: &[&str], body: &str) {

Calls 4

initFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45
init_vaultMethod · 0.45