mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
feat: Added bench command for resolve and install
This commit is contained in:
parent
bfd69c37eb
commit
cdaeea1d4a
@ -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)
|
||||
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user