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

Function manifest_kind

atomic-cli/src/commands/intent/new.rs:199–207  ·  view source on GitHub ↗

The classification mirrored into the manifest `IntentSummary.kind` — the exact field `intent list`/`show` read without lifting.

(repo: &Repository, id: &str)

Source from the content-addressed store, hash-verified

197 /// The classification mirrored into the manifest `IntentSummary.kind` — the
198 /// exact field `intent list`/`show` read without lifting.
199 fn manifest_kind(repo: &Repository, id: &str) -> String {
200 repo.vault_manifest()
201 .unwrap()
202 .intents
203 .get(id)
204 .unwrap()
205 .kind
206 .clone()
207 }
208
209 #[test]
210 fn new_defaults_to_feature() {

Callers

nothing calls this directly

Calls 4

vault_manifestMethod · 0.80
getMethod · 0.65
cloneMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected