mirror of
https://github.com/frappe/bench.git
synced 2024-11-13 16:56:33 +00:00
[fix] bench setup requirements command
This commit is contained in:
parent
5ac9e9d835
commit
fe901d25c6
@ -127,18 +127,21 @@ def setup_socketio():
|
|||||||
from bench.utils import setup_socketio
|
from bench.utils import setup_socketio
|
||||||
setup_socketio()
|
setup_socketio()
|
||||||
|
|
||||||
@click.command('requirements')
|
@click.command('requirements', help="Update Python and Node packages")
|
||||||
def setup_requirements():
|
@click.option('--node', help="Update only Node packages", default=False, is_flag=True)
|
||||||
|
@click.option('--python', help="Update only Python packages", default=False, is_flag=True)
|
||||||
|
def setup_requirements(node=False, python=False):
|
||||||
"Setup python and node requirements"
|
"Setup python and node requirements"
|
||||||
setup_python_requirements()
|
|
||||||
setup_node_requirements()
|
|
||||||
|
|
||||||
@click.command('python-requirements')
|
if not node:
|
||||||
|
setup_python_requirements()
|
||||||
|
if not python:
|
||||||
|
setup_node_requirements()
|
||||||
|
|
||||||
def setup_python_requirements():
|
def setup_python_requirements():
|
||||||
from bench.utils import update_requirements
|
from bench.utils import update_requirements
|
||||||
update_requirements()
|
update_requirements()
|
||||||
|
|
||||||
@click.command('node-requirements')
|
|
||||||
def setup_node_requirements():
|
def setup_node_requirements():
|
||||||
from bench.utils import update_node_packages
|
from bench.utils import update_node_packages
|
||||||
update_node_packages()
|
update_node_packages()
|
||||||
@ -236,8 +239,6 @@ setup.add_command(setup_env)
|
|||||||
setup.add_command(setup_procfile)
|
setup.add_command(setup_procfile)
|
||||||
setup.add_command(setup_socketio)
|
setup.add_command(setup_socketio)
|
||||||
setup.add_command(setup_requirements)
|
setup.add_command(setup_requirements)
|
||||||
setup.add_command(setup_python_requirements)
|
|
||||||
setup.add_command(setup_node_requirements)
|
|
||||||
setup.add_command(setup_config)
|
setup.add_command(setup_config)
|
||||||
setup.add_command(setup_fonts)
|
setup.add_command(setup_fonts)
|
||||||
setup.add_command(add_domain)
|
setup.add_command(add_domain)
|
||||||
|
Loading…
Reference in New Issue
Block a user