def list_tabs(args): """ Use this to show duplicates: bt list | sort -k3 | uniq -f2 -D | cut -f1 | bt close """ brotab_logger.info('Listing tabs') api = MultipleMediatorsAPI(create_clients(args.target_hosts)) tabs = api.list_tabs([]) message = '\n'.join(tabs) + '\n' sys.stdout.buffer.write(message.encode('utf8'))
def list_tabs(args): """ Use this to show duplicates: bt list | sort -k3 | uniq -f2 -D | cut -f1 | bt close """ logger.info('Listing tabs') api = MultipleMediatorsAPI(create_clients(args)) tabs = api.list_tabs([]) #print('\n'.join([tab.encode('utf8') for tab in tabs])) # print(u'\n'.join(tabs).encode('utf8')) # print(u'\n'.join(tabs)) message = '\n'.join(tabs) + '\n' sys.stdout.buffer.write(message.encode('utf8'))
def return_tabs(): logger.info('Listing tabs') api = MultipleMediatorsAPI(create_clients()) tabs = api.list_tabs([]) return tabs
def show_windows(args): brotab_logger.info('Showing windows') api = MultipleMediatorsAPI(create_clients(args.target_hosts)) tabs = api.list_tabs([]) _print_available_windows(tabs)