def sample_bugs
import cli@0.2.0.0/cli.bend as Cliimport Base
4970def sample_bugs(~A: Type, ~decode: @+m: Matches -> Dec(A),
4971 paths: List<&2, List<&2, String>>, +c: Cmd) -> List<&2, Problem>:
4972 match paths:
4973 case Nil{}: Nil{}
4974 case +path <> tail:
4975 List.append(&2, Problem,
4976 decode_bug(A, decode(sample(c, path)), path_text(cmd_name(c), path)),
4977 sample_bugs(~A, ~decode, tail, c))