@@ -27,7 +27,7 @@ def open_config(config_path):
2727 config = configparser .ConfigParser ()
2828 config .read (config_path )
2929 except Exception as e :
30- nxc_logger .print_msg (f"[-] Error reading nxc.conf: { e } " )
30+ nxc_logger .display (f"[-] Error reading nxc.conf: { e } " )
3131 sys .exit (1 )
3232 return config
3333
@@ -40,7 +40,7 @@ def set_workspace(config_path, workspace_name):
4040 config = open_config (config_path )
4141 config .set ("nxc" , "workspace" , workspace_name )
4242 write_configfile (config , config_path )
43- nxc_logger .print_msg (f"[*] Workspace set to { workspace_name } " )
43+ nxc_logger .display (f"[*] Workspace set to { workspace_name } " )
4444
4545
4646def get_db (config ):
@@ -63,7 +63,7 @@ def init_protocol_dbs(workspace_name, p_loader=None):
6363 proto_db_path = path_join (WORKSPACE_DIR , workspace_name , f"{ protocol } .db" )
6464
6565 if not exists (proto_db_path ):
66- nxc_logger .print_msg (
66+ nxc_logger .display (
6767 f"[*] Initializing { protocol .upper ()} protocol database"
6868 )
6969 conn = connect (proto_db_path )
@@ -93,17 +93,17 @@ def create_workspace(workspace_name, p_loader=None):
9393 None
9494 """
9595 if exists (path_join (WORKSPACE_DIR , workspace_name )):
96- nxc_logger .print_msg (f"[-] Workspace { workspace_name } already exists" )
96+ nxc_logger .display (f"[-] Workspace { workspace_name } already exists" )
9797 else :
98- nxc_logger .print_msg (f"[*] Creating { workspace_name } workspace" )
98+ nxc_logger .display (f"[*] Creating { workspace_name } workspace" )
9999 mkdir (path_join (WORKSPACE_DIR , workspace_name ))
100100
101101 init_protocol_dbs (workspace_name , p_loader )
102102
103103
104104def delete_workspace (workspace_name ):
105105 shutil .rmtree (path_join (WORKSPACE_DIR , workspace_name ))
106- nxc_logger .print_msg (f"[*] Workspace { workspace_name } deleted" )
106+ nxc_logger .display (f"[*] Workspace { workspace_name } deleted" )
107107
108108
109109def initialize_db ():
0 commit comments