1
0
Fork 0
iredis/scripts/display_all_command_hints.py

8 lines
281 B
Python
Raw Permalink Normal View History

from iredis.utils import command_syntax
from iredis.style import STYLE
from iredis.commands import commands_summary
from prompt_toolkit import print_formatted_text
for command, info in commands_summary.items():
print_formatted_text(command_syntax(command, info), style=STYLE)