def proc_evt_echo(cmd, args): """Echo args to stdout.""" no_opts.prog = cmd no_opts.usage = "%prog MESSAGE..." no_opts.description = "Echo args to stdout" opts, args = no_opts.parse_args(args) return [event.stdout(" ".join(args))]
def task_stdout(self, data): # FIXME: RHTS Task can send an event! Handle it! self.send_evt(event.stdout(data))