2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 23:48:24 +00:00

Rename method names

Rename include_update to include_app_for_update
Rename exclude_app to exclude_app_for_update
This commit is contained in:
Shridhar 2018-01-20 16:19:46 +05:30
parent 7013167d8d
commit d80ded2c88
2 changed files with 18 additions and 6 deletions

View File

@ -194,3 +194,7 @@ bench_command.add_command(exclude_update)
from bench.commands.exclude_update import include_update
bench_command.add_command(include_update)
from bench.commands.exclude_update import exclude_app_for_update, include_app_for_update
bench_command.add_command(exclude_app_for_update)
bench_command.add_command(include_app_for_update)

View File

@ -13,15 +13,23 @@ from bench.app import remove_from_exclided_appsstxt
@click.command('exclude-app')
@click.argument('app_name')
def exclude_update(app_name):
"""Update bench"""
def exclude_app_for_update(app_name):
"""
Update bench exclude app for update
:param app_name(str): App name
"""
add_to_excluded_appstxt(app_name)
return
@click.command('include-app')
@click.argument('app_name')
def include_update(app_name):
"""Update bench"""
add_to_excluded_appstxt(app_name)
return
def include_app_for_update(app_name):
"""
Update bench include app for update.
:param app_name(str): App name
"""
remove_from_exclided_appsstxt(app_name)
return