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

Function intents_written

atomic-cli/tests/it/vault_auto_init_test.rs:60–70  ·  view source on GitHub ↗
(repo: &Path)

Source from the content-addressed store, hash-verified

58}
59
60fn intents_written(repo: &Path) -> bool {
61 std::fs::read_dir(repo.join(".vault/intents"))
62 .map(|mut entries| {
63 entries.any(|entry| {
64 entry
65 .map(|e| e.path().join("intent.md").is_file())
66 .unwrap_or(false)
67 })
68 })
69 .unwrap_or(false)
70}
71
72#[test]
73fn intent_new_initializes_the_vault_and_the_next_command_does_not() {

Callers

nothing calls this directly

Calls 2

is_fileMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected