style: remove em-dashes from comments and the uninstall selector
This commit is contained in:
@@ -181,7 +181,7 @@ impl BundleStore {
|
|||||||
.map(|(name, record)| (name.as_str(), record))
|
.map(|(name, record)| (name.as_str(), record))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A URL already tracked under a different key migrates to the new key —
|
/// A URL already tracked under a different key migrates to the new key, so
|
||||||
/// the same URL never gets a second record. A name held by a
|
/// the same URL never gets a second record. A name held by a
|
||||||
/// different-source bundle is owner-qualified instead.
|
/// different-source bundle is owner-qualified instead.
|
||||||
pub(crate) fn resolve_bundle_name(
|
pub(crate) fn resolve_bundle_name(
|
||||||
@@ -371,7 +371,7 @@ impl BundleStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// An entry whose key any bundle already owns transfers to `bundle`, and
|
/// An entry whose key any bundle already owns transfers to `bundle`, and
|
||||||
/// its `replaced` action upgrades to `transferred` — plain `replaced`
|
/// its `replaced` action upgrades to `transferred`; plain `replaced`
|
||||||
/// marks a pre-existing user entry that uninstall must never delete.
|
/// marks a pre-existing user entry that uninstall must never delete.
|
||||||
pub(crate) fn record_mcp_servers(
|
pub(crate) fn record_mcp_servers(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
|||||||
@@ -265,8 +265,8 @@ pub fn install_or_update_from_repl_args(args: &str) -> Result<()> {
|
|||||||
install_or_update(&value, git_host.as_deref(), filter, force)
|
install_or_update(&value, git_host.as_deref(), filter, force)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The whole remote is always processed — including categories a filtered
|
/// The whole remote is always processed, including categories a filtered
|
||||||
/// install excluded — because filtered installs merge into a single record.
|
/// install excluded, because filtered installs merge into a single record.
|
||||||
pub fn update_bundle(spec: &str) -> Result<()> {
|
pub fn update_bundle(spec: &str) -> Result<()> {
|
||||||
let (name, ref_override) = parse_url_with_ref(spec)?;
|
let (name, ref_override) = parse_url_with_ref(spec)?;
|
||||||
|
|
||||||
@@ -591,7 +591,7 @@ fn select_uninstall_candidate(store: &BundleStore, spec: &str) -> Result<Option<
|
|||||||
_ => {
|
_ => {
|
||||||
let described: Vec<String> = candidates
|
let described: Vec<String> = candidates
|
||||||
.iter()
|
.iter()
|
||||||
.map(|(name, source)| format!("{name} — {source}"))
|
.map(|(name, source)| format!("{name} ({source})"))
|
||||||
.collect();
|
.collect();
|
||||||
if !*IS_STDOUT_TERMINAL {
|
if !*IS_STDOUT_TERMINAL {
|
||||||
bail!(
|
bail!(
|
||||||
@@ -1065,7 +1065,7 @@ pub(crate) struct BundleManifest {
|
|||||||
pub(crate) homepage: Option<String>,
|
pub(crate) homepage: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the record key — possibly migrated or owner-qualified — that all
|
/// Returns the record key, possibly migrated or owner-qualified, that all
|
||||||
/// subsequent recording must use in place of the requested name.
|
/// subsequent recording must use in place of the requested name.
|
||||||
fn register_bundle(
|
fn register_bundle(
|
||||||
store: &mut BundleStore,
|
store: &mut BundleStore,
|
||||||
@@ -1588,8 +1588,8 @@ fn apply_plan(
|
|||||||
Ok(report)
|
Ok(report)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Kept and identical files are never recorded — ownership means "this
|
/// Kept and identical files are never recorded, because ownership means
|
||||||
/// content exists because of this bundle" — so a file another bundle's
|
/// "this content exists because of this bundle": a file another bundle's
|
||||||
/// record already owns stays with that owner.
|
/// record already owns stays with that owner.
|
||||||
fn record_written_file(
|
fn record_written_file(
|
||||||
store: &mut BundleStore,
|
store: &mut BundleStore,
|
||||||
|
|||||||
Reference in New Issue
Block a user