def severity

cswap-bend-cli@0.1.0.0 · tui/fmt.bend:144

import cswap-bend-cli@0.1.0.0/tui/fmt.bend as Fmt
import Base

144# Bar colour from the centi-percent: red from 90 %, amber from 70 %.
145def severity(+c: U32) -> Role:
146  sev_pick(U32.is_ge(c, 9000), c)

Uses (4)

Used by (3)