upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-07-16 13:47:42 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-07-16 13:47:42 +0100
commit3d939fc3c661995ed7500b09584ab98e28134341 (patch)
tree5affa6e7456cfd1c8ac3757472914f06722d5a5e
parenta390dd5f94679111bd78ca28f623c18a6e5a59ff (diff)
fix(fetch): report grammar and copy
as 'fetching... updates:' feels more like further updates are being fetched than 'fetching... found'
-rw-r--r--src/client.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client.rs b/src/client.rs
index 8bdf3c2..5e9ec86 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -446,7 +446,7 @@ impl Connect for Client {
446 if report.to_string().is_empty() { 446 if report.to_string().is_empty() {
447 "fetching".to_string() 447 "fetching".to_string()
448 } else { 448 } else {
449 format!("fetching... found {report}") 449 format!("fetching... updates: {report}")
450 }, 450 },
451 )) 451 ))
452 .to_string(), 452 .to_string(),
@@ -484,7 +484,7 @@ impl Connect for Client {
484 if report.to_string().is_empty() { 484 if report.to_string().is_empty() {
485 "no updates".to_string() 485 "no updates".to_string()
486 } else { 486 } else {
487 format!("found {report}") 487 format!("updates: {report}")
488 }, 488 },
489 )) 489 ))
490 .to_string(), 490 .to_string(),
@@ -1062,28 +1062,28 @@ impl Display for FetchReport {
1062 display_items.push(format!( 1062 display_items.push(format!(
1063 "{} proposal{}", 1063 "{} proposal{}",
1064 self.proposals.len(), 1064 self.proposals.len(),
1065 if self.proposals.len() == 1 { "s" } else { "" }, 1065 if self.proposals.len() > 1 { "s" } else { "" },
1066 )); 1066 ));
1067 } 1067 }
1068 if !self.commits.is_empty() { 1068 if !self.commits.is_empty() {
1069 display_items.push(format!( 1069 display_items.push(format!(
1070 "{} commit{}", 1070 "{} commit{}",
1071 self.commits.len(), 1071 self.commits.len(),
1072 if self.commits.len() == 1 { "s" } else { "" }, 1072 if self.commits.len() > 1 { "s" } else { "" },
1073 )); 1073 ));
1074 } 1074 }
1075 if !self.statuses.is_empty() { 1075 if !self.statuses.is_empty() {
1076 display_items.push(format!( 1076 display_items.push(format!(
1077 "{} status{}", 1077 "{} status{}",
1078 self.statuses.len(), 1078 self.statuses.len(),
1079 if self.statuses.len() == 1 { "es" } else { "" }, 1079 if self.statuses.len() > 1 { "es" } else { "" },
1080 )); 1080 ));
1081 } 1081 }
1082 if !self.contributor_profiles.is_empty() { 1082 if !self.contributor_profiles.is_empty() {
1083 display_items.push(format!( 1083 display_items.push(format!(
1084 "{} contributor profile{}", 1084 "{} contributor profile{}",
1085 self.contributor_profiles.len(), 1085 self.contributor_profiles.len(),
1086 if self.contributor_profiles.len() == 1 { 1086 if self.contributor_profiles.len() > 1 {
1087 "s" 1087 "s"
1088 } else { 1088 } else {
1089 "" 1089 ""