Short label used in `--check` mode for terse machine-readable output.
(&self)
| 73 | impl 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. |