mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 15:38:25 +00:00
style: Black-ish + Flake8
This commit is contained in:
parent
b92fb1401b
commit
7c4b6cea2b
@ -26,7 +26,17 @@ def bench_command(bench_path="."):
|
||||
bench.set_frappe_version(bench_path=bench_path)
|
||||
|
||||
|
||||
from bench.commands.make import init, drop, get_app, new_app, remove_app, exclude_app_for_update, include_app_for_update, pip
|
||||
from bench.commands.make import (
|
||||
drop,
|
||||
exclude_app_for_update,
|
||||
get_app,
|
||||
include_app_for_update,
|
||||
init,
|
||||
new_app,
|
||||
pip,
|
||||
remove_app,
|
||||
)
|
||||
|
||||
bench_command.add_command(init)
|
||||
bench_command.add_command(drop)
|
||||
bench_command.add_command(get_app)
|
||||
@ -37,17 +47,44 @@ bench_command.add_command(include_app_for_update)
|
||||
bench_command.add_command(pip)
|
||||
|
||||
|
||||
from bench.commands.update import update, retry_upgrade, switch_to_branch, switch_to_develop
|
||||
from bench.commands.update import (
|
||||
retry_upgrade,
|
||||
switch_to_branch,
|
||||
switch_to_develop,
|
||||
update,
|
||||
)
|
||||
|
||||
bench_command.add_command(update)
|
||||
bench_command.add_command(retry_upgrade)
|
||||
bench_command.add_command(switch_to_branch)
|
||||
bench_command.add_command(switch_to_develop)
|
||||
|
||||
|
||||
from bench.commands.utils import (start, restart, set_nginx_port, set_ssl_certificate, set_ssl_certificate_key, set_url_root,
|
||||
set_mariadb_host, download_translations, backup_site, backup_all_sites, release, renew_lets_encrypt,
|
||||
disable_production, bench_src, prepare_beta_release, set_redis_cache_host, set_redis_queue_host, set_redis_socketio_host, find_benches, migrate_env,
|
||||
generate_command_cache, clear_command_cache)
|
||||
from bench.commands.utils import (
|
||||
backup_all_sites,
|
||||
backup_site,
|
||||
bench_src,
|
||||
clear_command_cache,
|
||||
disable_production,
|
||||
download_translations,
|
||||
find_benches,
|
||||
generate_command_cache,
|
||||
migrate_env,
|
||||
prepare_beta_release,
|
||||
release,
|
||||
renew_lets_encrypt,
|
||||
restart,
|
||||
set_mariadb_host,
|
||||
set_nginx_port,
|
||||
set_redis_cache_host,
|
||||
set_redis_queue_host,
|
||||
set_redis_socketio_host,
|
||||
set_ssl_certificate,
|
||||
set_ssl_certificate_key,
|
||||
set_url_root,
|
||||
start,
|
||||
)
|
||||
|
||||
bench_command.add_command(start)
|
||||
bench_command.add_command(restart)
|
||||
bench_command.add_command(set_nginx_port)
|
||||
@ -72,16 +109,20 @@ bench_command.add_command(generate_command_cache)
|
||||
bench_command.add_command(clear_command_cache)
|
||||
|
||||
from bench.commands.setup import setup
|
||||
|
||||
bench_command.add_command(setup)
|
||||
|
||||
|
||||
from bench.commands.config import config
|
||||
|
||||
bench_command.add_command(config)
|
||||
|
||||
from bench.commands.git import remote_set_url, remote_reset_url, remote_urls
|
||||
from bench.commands.git import remote_reset_url, remote_set_url, remote_urls
|
||||
|
||||
bench_command.add_command(remote_set_url)
|
||||
bench_command.add_command(remote_reset_url)
|
||||
bench_command.add_command(remote_urls)
|
||||
|
||||
from bench.commands.install import install
|
||||
|
||||
bench_command.add_command(install)
|
||||
|
Loading…
x
Reference in New Issue
Block a user