···1313const MAX_BUBBLE_SIZE: usize = 60;
1414const MIN_CLONE_INNER: usize = 22;
15151616-const TIPS: &[&str] = &[
1616+const MUSINGS: &[&str] = &[
1717 "I push, therefore I baa.",
1818 "Identity portable. Repos plural. Wool eternal.",
1919];
···3333 #[arg(long)]
3434 clone: bool,
35353636- /// Have Dolly share a random Tangled tip.
3636+ /// Have Dolly share what's on her mind.
3737 #[arg(long)]
3838- tip: bool,
3838+ muse: bool,
3939}
40404141fn main() -> ExitCode {
···7474// Finds where the message text comes from: positional args or piped stdin,
7575// or falls back to default string.
7676fn resolve_message(cli: &Cli) -> io::Result<String> {
7777- // --tip wins over positional/stdin: the user is explicitly asking for one.
7878- if cli.tip {
7979- return Ok(random_tip().to_string());
7777+ // --muse wins over positional/stdin: the user is explicitly asking for one.
7878+ if cli.muse {
7979+ return Ok(random_musing().to_string());
8080 }
81818282 // positional args
···100100 Ok(buf.trim_end().to_string())
101101}
102102103103-// Picks a tip pseudo-randomly. Uses the system clock as the seed source so we
103103+// Picks a musing pseudo-randomly. Uses the system clock as the seed source so we
104104// don't pull in `rand`.
105105-fn random_tip() -> &'static str {
106106- if TIPS.is_empty() {
105105+fn random_musing() -> &'static str {
106106+ if MUSINGS.is_empty() {
107107 return "Baa!";
108108 }
109109 let nanos = SystemTime::now()
110110 .duration_since(UNIX_EPOCH)
111111 .map(|d| d.as_millis())
112112 .unwrap_or(0);
113113- TIPS[(nanos as usize) % TIPS.len()]
113113+ MUSINGS[(nanos as usize) % MUSINGS.len()]
114114}
115115116116// Computes the wrap width for the message inside the bubble.