def gather_event

cli@0.2.0.0 · cli.bend:3689

import cli@0.2.0.0/cli.bend as Cli
import 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

Uses (8)

Used by (1)