chore: Add fallback help link to docs
Didn't use https://frappeframework.com/docs/user/en/bench since the invisible parts weren't being rendered correctly in click...Even with the latest stable click.
This commit is contained in:
parent
3734b63c17
commit
6fa44652c5
1 changed files with 17 additions and 2 deletions
|
|
@ -104,7 +104,22 @@ def get_commands():
|
|||
from .utils import commands as utils_commands
|
||||
from .redis import commands as redis_commands
|
||||
|
||||
all_commands = scheduler_commands + site_commands + translate_commands + utils_commands + redis_commands
|
||||
return list(set(all_commands))
|
||||
clickable_link = (
|
||||
"\x1b]8;;https://frappeframework.com/docs\afrappeframework.com\x1b]8;;\a"
|
||||
)
|
||||
all_commands = (
|
||||
scheduler_commands
|
||||
+ site_commands
|
||||
+ translate_commands
|
||||
+ utils_commands
|
||||
+ redis_commands
|
||||
)
|
||||
|
||||
for command in all_commands:
|
||||
if not command.help:
|
||||
command.help = f"Refer to {clickable_link}"
|
||||
|
||||
return all_commands
|
||||
|
||||
|
||||
commands = get_commands()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue