fix: add command to indicate use-cached support
This commit is contained in:
parent
2b3ab02d79
commit
9a87ec11e7
1 changed files with 13 additions and 0 deletions
|
|
@ -1147,8 +1147,21 @@ def rebuild_global_search(context, static_pages=False):
|
|||
raise SiteNotSpecifiedError
|
||||
|
||||
|
||||
@click.command("can-use-cached")
|
||||
def can_use_cached() -> None:
|
||||
"""
|
||||
Used by bench to check if the installed version of Frappe supports
|
||||
installing apps from cached get-app artifacts.
|
||||
|
||||
Bench just checks the exit code for this command, if it is not
|
||||
present then the call to this command will error out.
|
||||
"""
|
||||
click.secho("yes", fg="green")
|
||||
|
||||
|
||||
commands = [
|
||||
build,
|
||||
can_use_cached,
|
||||
clear_cache,
|
||||
clear_website_cache,
|
||||
database,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue