mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
add exist function to cmedb
This commit is contained in:
committed by
Marshall Hallenbeck
parent
e873efea35
commit
0c50cd0962
+8
-5
@@ -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')):
|
||||
|
||||
Reference in New Issue
Block a user