summaryrefslogtreecommitdiffstats
path: root/scripts/display_all_command_hints.py
blob: 9f13a4c206588fb8dc703834d2e2e69fde4c02ad (plain)
1
2
3
4
5
6
7
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)