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 _save(content, args): """ Save the current process list to file.""" out_file = content.filename if args.input else args.filepath content.check_file(out_file) print() DispDisplay(content.plugin_list)._notices() content.save(out_file, check=raw_input("Are you sure you want to save the " "current data to %s' [y/N]" % (out_file))) return content