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

feat: Added bench command for resolve and install

This commit is contained in:
Aradhya 2022-01-19 23:50:35 +05:30
parent d41e05e24f
commit 7a311a242d
2 changed files with 21 additions and 0 deletions

View File

@ -39,6 +39,7 @@ from bench.commands.make import (
new_app,
pip,
remove_app,
resolve_and_install,
)
bench_command.add_command(init)
@ -48,6 +49,7 @@ bench_command.add_command(new_app)
bench_command.add_command(remove_app)
bench_command.add_command(exclude_app_for_update)
bench_command.add_command(include_app_for_update)
bench_command.add_command(resolve_and_install)
bench_command.add_command(pip)

View File

@ -147,6 +147,25 @@ def get_app(
init_bench=init_bench,
)
@click.command("resolve-and-install", help="Resolve dependencies and install apps")
@click.argument("git-url")
@click.option("--branch", default=None)
@click.option("--skip-assets", is_flag=True, default=False, help="Do not build assets")
@click.option(
"--init-bench", is_flag=True, default=False, help="Initialize Bench if not in one"
)
@click.option("--skip-assets", is_flag=True, default=False, help="Do not build assets")
@click.option("--verbose", is_flag=True, default=False, help="Verbosity")
def resolve_and_install(git_url, branch, skip_assets, verbose, init_bench):
from bench.app import resolve_and_install
resolve_and_install(
git_url=git_url,
branch=branch,
skip_assets=skip_assets,
init_bench=init_bench,
verbose=verbose,
)
@click.command("new-app", help="Create a new Frappe application under apps folder")
@click.option(