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

Function manifest_kind

atomic-cli/src/commands/intent/new.rs:258–266  ·  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

256 /// The classification mirrored into the manifest `IntentSummary.kind` — the
257 /// exact field `intent list`/`show` read without lifting.
258 fn manifest_kind(repo: &Repository, id: &str) -> String {
259 repo.vault_manifest()
260 .unwrap()
261 .intents
262 .get(id)
263 .unwrap()
264 .kind
265 .clone()
266 }
267
268 #[test]
269 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