def print_commands(commands, status_update_callback, logger, close_logger_on_success=True):
 logger.write('Printing commands only.\n\n')
 for c in commands:
  for e in c:
   status_update_callback(('#%s' % e[0]))
   print ('%s' % e[1])
   logger.write(('# %s command\n%s\n\n' % e))

def print_commands ( commands , status_update_callback , logger , close_logger_on_success = True ) : logger . write ( 'Printing commands only.\n\n' ) for c in commands : for e in c : status_update_callback ( ( '#%s' % e [ 0 ] ) ) print ( '%s' % e [ 1 ] ) logger . write ( ( '# %s command\n%s\n\n' % e ) )
print list of commands to run .