def of_word

bolt@1.26.0.0 · src/config.bend:75

import bolt@1.26.0.0/src/config.bend as Config
import Base

75# a level by its word; an unknown word is an error, so a typo shows
76def of_word(+ww: String) -> Level:
77  Bool.pick(Level, String.eq(ww, "off"), Off{}, Bool.pick(Level, String.eq(ww, "warn"), Warn{}, Error{}))

Uses (4)

Used by (1)