def color_attrs

cli@0.2.0.0 · cli.bend:4992

import cli@0.2.0.0/cli.bend as Cli
import Base

4992# Rules 1 and 2 apply only to color() exactly as declared.
4993def color_attrs(attrs: List<&2, Item>) -> Bool:
4994  match attrs:
4995    case Con{OneOf{values}, Con{AttrDefault{value}, Con{Global{}, Nil{}}}}:
4996      Bool.and(String.eq(String.join(values, " "), "auto always never"),
4997        String.eq(value, "auto"))
4998    case _: False{}

Uses (6)

Used by (1)