2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 07:28:25 +00:00

chore: Mark methods under job/step

This commit is contained in:
Gavin D'souza 2021-11-18 18:22:32 +05:30
parent 7c653db703
commit a8564f3991
3 changed files with 5 additions and 0 deletions

View File

@ -125,6 +125,7 @@ class Bench(Base, Validator):
# build assets & stuff
run_frappe_cmd("build", bench_path=self.name)
@step(title="Reloading Bench Processes", success="Bench Processes Reloaded")
def reload(self):
conf = self.conf
if conf.get("restart_supervisor_on_update"):

View File

@ -34,6 +34,8 @@ class MultiCommandGroup(click.Group):
def use_experimental_feature(ctx, param, value):
if not value:
return
if value == "dynamic-feed":
import bench.cli
bench.cli.dynamic_feed = True

View File

@ -16,8 +16,10 @@ from bench.utils import (
which,
)
from bench.utils.bench import build_assets, clone_apps_from
from bench.utils.render import job
@job(title="Initializing Bench {path}", success="Bench {path} initialized")
def init(
path,
apps_path=None,