pub fn maybe_emit(
repo_root: &Path,
cfg: Option<&RepoConfig>,
tip: Tip,
as_json: bool,
quiet: bool,
)Expand description
Emit a tip on stderr if it hasn’t been shown yet for this repo and the
caller hasn’t suppressed tips. The as_json argument should be true
when the verb is rendering JSON — tips are skipped there to keep
scripted output clean. The quiet argument reflects the global
--quiet flag and suppresses nonessential discoverability copy.