def run(args): """ run the corresponding action """ my_config = Config() if args['action'] == 'config': args['list_repositories'] and my_config.print_repositories() else: module_obj = Module( args['module_name'], args['module_developers'], args['module_planners'], args['module_auditors'], folder=args['destination_folder'], init_data=args['add_init_data'], company_name=args['company_name']) if args['action'] == 'branch': branch_obj = Branch( module_obj, args['branch_suffix'], args['parent_repo'], args['oerp_version'], args['destination_folder']) branch_obj.create_branch() module_obj.create(branch_obj) elif args['action'] == 'create': module_obj.create() elif args['action'] == 'append': module_obj.append(args['append_file'], args['file_name']) #~ module_obj.branch_changes_apply() return True