Quiet.is_nag: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ez/quiet.bend as Quiet Lines 18-23 of ezx@1.11.0.0/src/ez/quiet.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ez/quiet.bend&start_line=18&end_line=23 import Base # whether this line is bend telling us a newer bend exists. Anchored at both # ends rather than matched loosely: a test that legitimately prints the words # `bend update` in prose should still be compared on them. def is_nag(+line: String) -> Bool: Bool.and(String.starts_with(line, "bend "), String.ends_with(line, " is available: run bend update")) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.ends_with https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.starts_with