File: display_all_command_hints.py

package info (click to toggle)
iredis 1.15.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,244 kB
  • sloc: python: 7,196; sh: 16; makefile: 14
file content (7 lines) | stat: -rw-r--r-- 281 bytes parent folder | download | duplicates (3)
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)