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

Method bare

atomic-cli/src/commands/view/list.rs:188–200  ·  view source on GitHub ↗

A name-only entry used when view metadata is unavailable. Treated as having changes so it is never hidden from the listing.

(name: &str, current: &str)

Source from the content-addressed store, hash-verified

186 /// A name-only entry used when view metadata is unavailable. Treated as
187 /// having changes so it is never hidden from the listing.
188 fn bare(name: &str, current: &str) -> Self {
189 ViewEntry {
190 name: name.to_string(),
191 parent: None,
192 own_change_count: 1,
193 change_count: 0,
194 inherited_change_count: 0,
195 kind: "shared",
196 state_short: "-".to_string(),
197 is_current: name == current,
198 has_info: false,
199 }
200 }
201
202 /// Build from the wire `ViewInfo` the daemon returns over RPC. Carries
203 /// the same metadata as the local listing, so both paths render

Calls

no outgoing calls