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

Method key

atomic-cli/src/commands/agent/identity.rs:141–147  ·  view source on GitHub ↗

Stable machine key for JSON output (`env`, `global`, `server-profile`). The human labels live in the `Display` impl.

(&self)

Source from the content-addressed store, hash-verified

139 /// Stable machine key for JSON output (`env`, `global`, `server-profile`).
140 /// The human labels live in the `Display` impl.
141 pub fn key(&self) -> &'static str {
142 match self {
143 AgentIdentitySource::EnvVar => "env",
144 AgentIdentitySource::GlobalSetting => "global",
145 AgentIdentitySource::ServerProfile => "server-profile",
146 }
147 }
148}
149
150/// Resolve the agent identity that recording hooks should sign as.

Callers 1

to_jsonMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected