feat(cmedb): add print_help function to assist in printing help commands

main
Marshall Hallenbeck 2023-03-06 18:41:05 -05:00
parent 526ec5373e
commit 0a58d95218
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@ from sqlalchemy.ext.asyncio import create_async_engine
from sqlalchemy.exc import SAWarning
import csv
import warnings
from textwrap import dedent
# The following disables the InsecureRequests warning and the 'Starting new HTTPS connection' log message
from requests.packages.urllib3.exceptions import InsecureRequestWarning
@ -84,6 +85,10 @@ def complete_export(text, line):
return [s[offs:] for s in commands if s.startswith(mline)]
def print_help(help_string):
print(dedent(help_string))
class DatabaseNavigator(cmd.Cmd):
def __init__(self, main_menu, database, proto):
cmd.Cmd.__init__(self)