2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-13 16:56:33 +00:00

skip asstes while doing get-app

This commit is contained in:
Shridhar Patil 2019-12-19 17:35:48 +05:30
parent fb13dfb0c2
commit b005720a2b

View File

@ -35,10 +35,11 @@ def init(path, apps_path, frappe_path, frappe_branch, no_procfile, no_backups,
@click.argument('name', nargs=-1) # Dummy argument for backward compatibility
@click.argument('git-url')
@click.option('--branch', default=None, help="branch to checkout")
def get_app(git_url, branch, name=None):
@click.option('--skip-assets', is_flag=True, default=True, help="Do not build assets")
def get_app(git_url, branch, name=None, skip_assets=True):
"clone an app from the internet and set it up in your bench"
from bench.app import get_app
get_app(git_url, branch=branch)
get_app(git_url, branch=branch, build_asset_files=skip_assets)
@click.command('new-app')