def _disp(content, args): """ Display the plugins in the current list.""" range_dict = utils.__get_start_stop(content, args.start, args.stop) formatter = DispDisplay(content.plugin_list) verbosity = parsers._get_verbosity(args) level = 'all' if args.all else content.disp_level content.display(formatter, level=level, verbose=verbosity, **range_dict) return content
def _list(content, args): """ List the available plugins. """ list_content = Content() utils._populate_plugin_list(list_content, pfilter=args.string) if not len(list_content.plugin_list.plugin_list): print("No result found.") return content formatter = ListDisplay(list_content.plugin_list) verbosity = parsers._get_verbosity(args) list_content.display(formatter, verbose=verbosity) return content