mirror of
https://github.com/frappe/bench.git
synced 2024-11-17 02:25:16 +00:00
feat: Added bench command for resolve and install
This commit is contained in:
parent
d41e05e24f
commit
7a311a242d
@ -39,6 +39,7 @@ from bench.commands.make import (
|
|||||||
new_app,
|
new_app,
|
||||||
pip,
|
pip,
|
||||||
remove_app,
|
remove_app,
|
||||||
|
resolve_and_install,
|
||||||
)
|
)
|
||||||
|
|
||||||
bench_command.add_command(init)
|
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(remove_app)
|
||||||
bench_command.add_command(exclude_app_for_update)
|
bench_command.add_command(exclude_app_for_update)
|
||||||
bench_command.add_command(include_app_for_update)
|
bench_command.add_command(include_app_for_update)
|
||||||
|
bench_command.add_command(resolve_and_install)
|
||||||
bench_command.add_command(pip)
|
bench_command.add_command(pip)
|
||||||
|
|
||||||
|
|
||||||
|
@ -147,6 +147,25 @@ def get_app(
|
|||||||
init_bench=init_bench,
|
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.command("new-app", help="Create a new Frappe application under apps folder")
|
||||||
@click.option(
|
@click.option(
|
||||||
|
Loading…
Reference in New Issue
Block a user