

@cli.resultcallback()
def process_commands(processors):
    'This result callback is invoked with an iterable of all the chained\n    subcommands.  As in this example each subcommand returns a function\n    we can chain them together to feed one into the other, similar to how\n    a pipe on unix works.\n    '
    stream = ()
    for processor in processors:
        stream = processor(stream)
    for _ in stream:
        pass

dataset/ETHPy150Open pallets/click/examples/imagepipe/imagepipe.py process_commands/original