add exist function to cmedb

main
mpgn 2023-03-23 16:13:44 -04:00
parent 25d2049f60
commit 771f002c53
1 changed files with 8 additions and 5 deletions

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')):