feat(cmedb): add print_help function to assist in printing help commands
parent
526ec5373e
commit
0a58d95218
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue