def list_(json_): """Lists registered decoders.""" descriptions = kordesii.get_decoder_descriptions() if json_: print(json.dumps(descriptions, indent=4)) else: print(tabulate.tabulate(descriptions, headers=['NAME', 'SOURCE', 'AUTHOR', 'DESCRIPTION']))
def _print_decoders(json_output=False): """Prints out list of registered decoders.""" descriptions = kordesii.get_decoder_descriptions() if json_output: print(json.dumps(descriptions, indent=4)) else: print( tabulate.tabulate( descriptions, headers=['NAME', 'SOURCE', 'AUTHOR', 'DESCRIPTION']))