2
0
mirror of https://github.com/frappe/bench.git synced 2024-06-27 11:43:29 +00:00

refactor(minor): Use Bench object to remove app

This commit is contained in:
Gavin D'souza 2021-11-10 10:16:19 +05:30
parent bae338ad0b
commit e1ed4d4e53

View File

@ -96,8 +96,9 @@ def new_app(app_name):
@click.command('remove-app', help='Completely remove app from bench and re-build assets if not installed on any site')
@click.argument('app-name')
def remove_app(app_name):
from bench.app import remove_app
remove_app(app_name)
from bench.bench import Bench
bench = Bench(".")
bench.uninstall(app_name)
@click.command('exclude-app', help='Exclude app from updating')