add exist function to cmedb

This commit is contained in:
mpgn
2023-03-23 16:13:44 -04:00
committed by Marshall Hallenbeck
parent e873efea35
commit 0c50cd0962
+8 -5
View File
@@ -50,11 +50,6 @@ def print_table(data, title=None):
print(table.table)
print("")
# def do_exit():
# sys.exit(0)
def write_csv(filename, headers, entries):
"""
Writes a CSV file with the provided parameters.
@@ -442,6 +437,14 @@ class CMEDBMenu(cmd.Cmd):
"""
print_help(help_string)
def do_exit(self, line):
sys.exit()
def help_exit(self):
help_string = """
Exits
"""
print_help(help_string)
def initialize_db(logger):
if not os.path.exists(os.path.join(WS_PATH, 'default')):