mirror of
https://github.com/frappe/bench.git
synced 2025-02-03 11:28:24 +00:00
chore: Mark methods under job/step
This commit is contained in:
parent
7c653db703
commit
a8564f3991
@ -125,6 +125,7 @@ class Bench(Base, Validator):
|
|||||||
# build assets & stuff
|
# build assets & stuff
|
||||||
run_frappe_cmd("build", bench_path=self.name)
|
run_frappe_cmd("build", bench_path=self.name)
|
||||||
|
|
||||||
|
@step(title="Reloading Bench Processes", success="Bench Processes Reloaded")
|
||||||
def reload(self):
|
def reload(self):
|
||||||
conf = self.conf
|
conf = self.conf
|
||||||
if conf.get("restart_supervisor_on_update"):
|
if conf.get("restart_supervisor_on_update"):
|
||||||
|
@ -34,6 +34,8 @@ class MultiCommandGroup(click.Group):
|
|||||||
|
|
||||||
|
|
||||||
def use_experimental_feature(ctx, param, value):
|
def use_experimental_feature(ctx, param, value):
|
||||||
|
if not value:
|
||||||
|
return
|
||||||
if value == "dynamic-feed":
|
if value == "dynamic-feed":
|
||||||
import bench.cli
|
import bench.cli
|
||||||
bench.cli.dynamic_feed = True
|
bench.cli.dynamic_feed = True
|
||||||
|
@ -16,8 +16,10 @@ from bench.utils import (
|
|||||||
which,
|
which,
|
||||||
)
|
)
|
||||||
from bench.utils.bench import build_assets, clone_apps_from
|
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(
|
def init(
|
||||||
path,
|
path,
|
||||||
apps_path=None,
|
apps_path=None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user