@cli.resultcallback()
def process_commands(processors):
 stream = ()
 for processor in processors:
  stream = processor(stream)
 for _ in stream:
  pass

@ cli . resultcallback ( ) def process_commands ( processors ) : stream = ( ) for processor in processors : stream = processor ( stream ) for _ in stream : pass
this result callback is invoked with an iterable of all the chained subcommands .