def is_nag

ezx@1.11.0.0 · src/ez/quiet.bend:18

import ezx@1.11.0.0/src/ez/quiet.bend as Quiet
import Base

18# whether this line is bend telling us a newer bend exists. Anchored at both
19# ends rather than matched loosely: a test that legitimately prints the words
20# `bend update` in prose should still be compared on them.
21def is_nag(+line: String) -> Bool:
22  Bool.and(String.starts_with(line, "bend "),
23    String.ends_with(line, " is available: run bend update"))

Uses (5)

Used by (1)