mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 08:16:28 +00:00
Merge pull request #1271 from resilient-tech/fix-docstrings
fix: clearer docstrings
This commit is contained in:
commit
9cd100aad8
@ -327,7 +327,7 @@ class BenchSetup(Base):
|
|||||||
|
|
||||||
@job(title="Setting Up Bench Dependencies", success="Bench Dependencies Set Up")
|
@job(title="Setting Up Bench Dependencies", success="Bench Dependencies Set Up")
|
||||||
def requirements(self, apps=None):
|
def requirements(self, apps=None):
|
||||||
"""Install and upgrade all installed apps on given Bench if apps not specified
|
"""Install and upgrade specified / all installed apps on given Bench
|
||||||
"""
|
"""
|
||||||
from bench.app import App
|
from bench.app import App
|
||||||
|
|
||||||
@ -342,7 +342,7 @@ class BenchSetup(Base):
|
|||||||
App(app, bench=self.bench, to_clone=False).install( skip_assets=True, restart_bench=False)
|
App(app, bench=self.bench, to_clone=False).install( skip_assets=True, restart_bench=False)
|
||||||
|
|
||||||
def python(self, apps=None):
|
def python(self, apps=None):
|
||||||
"""Install and upgrade Python dependencies for installed apps on given Bench if app not specified
|
"""Install and upgrade Python dependencies for specified / all installed apps on given Bench
|
||||||
"""
|
"""
|
||||||
import bench.cli
|
import bench.cli
|
||||||
|
|
||||||
@ -359,7 +359,7 @@ class BenchSetup(Base):
|
|||||||
self.run(f"{self.bench.python} -m pip install {quiet_flag} --upgrade -e {app_path}")
|
self.run(f"{self.bench.python} -m pip install {quiet_flag} --upgrade -e {app_path}")
|
||||||
|
|
||||||
def node(self, apps=None):
|
def node(self, apps=None):
|
||||||
"""Install and upgrade Node dependencies for all apps on given Bench if app not specified
|
"""Install and upgrade Node dependencies for specified / all apps on given Bench
|
||||||
"""
|
"""
|
||||||
from bench.utils.bench import update_node_packages
|
from bench.utils.bench import update_node_packages
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ def setup_requirements(node=False, python=False, dev=False, apps=None):
|
|||||||
"""
|
"""
|
||||||
Setup Python and Node dependencies.
|
Setup Python and Node dependencies.
|
||||||
|
|
||||||
You can optionally specify one or more apps to specify dependencies for.
|
You can optionally specify one or more apps to setup dependencies for.
|
||||||
"""
|
"""
|
||||||
from bench.bench import Bench
|
from bench.bench import Bench
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user