def gather_event
import cli@0.2.0.0/cli.bend as Cliimport Base
3689def gather_event(event: ScanEvent, id: String,
3690 kind: UsageKind, gather: Gather) -> Gather:
3691 match event:
3692 case ValueHit{key, value}:
3693 gather_value_if(same_text(key, id), gather, value, kind)
3694 case FlagHit{key, value}:
3695 gather_flag_if(same_text(key, id), gather, value)
3696 case CountHit{key}: gather_count_if(same_text(key, id), gather)
3697 case _: gather