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

Method short_label

atomic-cli/src/commands/update.rs:75–83  ·  view source on GitHub ↗

Short label used in `--check` mode for terse machine-readable output.

(&self)

Source from the content-addressed store, hash-verified

73impl InstallSource {
74 /// Short label used in `--check` mode for terse machine-readable output.
75 pub fn short_label(&self) -> &'static str {
76 match self {
77 Self::OfficialInstaller { .. } => "installer",
78 Self::Homebrew { .. } => "homebrew",
79 Self::Cargo => "cargo",
80 Self::Manual => "manual",
81 Self::Unknown => "unknown",
82 }
83 }
84}
85
86/// Result of comparing the current binary's version to GitHub's latest.

Callers 1

from_processMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected