1010#
1111# This file is part of Vimana Framework Project.
1212
13- from siddhis .djunch .engines ._dju_settings import table_models
14- from siddhis .djunch .engines ._dju_utils import DJUtils
13+ from siddhis .djunch .engines ._dju_settings import table_models
1514from core .vmnf_sessions_utils import abduct_items
1615from neotermcolor import cprint , colored as cl
1716from ._dbops_ .vmnf_dbops import VFDBOps
@@ -85,10 +84,6 @@ def load_siddhis(self):
8584 abduct_items (** siddhi )
8685 VFDBOps (** siddhi ).register ('_SIDDHIS_' )
8786
88- # No need for global path tracking - just use relative paths
89- vimana_root = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
90-
91-
9287 self .load_tools ()
9388 self .list_siddhis ()
9489
@@ -254,11 +249,10 @@ def list_siddhis(self):
254249 self .no_match ()
255250 return False
256251
257- #case_header()
258252 print ("\033 c" , end = "" )
259253 vimana_version = cl (f'Vimana { _version_ } ' , 77 ,attrs = ['bold' ])
260254 vimana_desc = cl ('(Security & Automation Tools for Python Web Frameworks)' , 77 ,attrs = ['bold' ])
261- plugin_catalog = cl ('Plugin Catalog' , 15 ) # or 97 for bright white
255+ plugin_catalog = cl ('Plugin Catalog' , 15 )
262256
263257 vimana_banner = f"""
264258
@@ -269,12 +263,13 @@ def list_siddhis(self):
269263 """
270264
271265 cprint (vimana_banner , 77 )
272-
273266
274267 if self .handler .get ('fancy_table' ):
275268 _plugins_table_ = gen_issues_table (matches , 'plugins' )
276269
277270 else :
271+ from siddhis .djunch .engines ._dju_utils import DJUtils
272+
278273 _plugins_table_ = DJUtils ().get_pretty_table (
279274 ** table_models ().siddhis_tbl_set
280275 )
@@ -290,7 +285,6 @@ def list_siddhis(self):
290285 ]
291286 )
292287
293- #cprint(f"\n❖ Vimana Plugin Catalog:", "white",attrs=['bold'])
294288 print (_plugins_table_ )
295289 print ()
296290
@@ -306,7 +300,6 @@ def run_siddhi(self):
306300 if siddhi .vfset .get ('parse_plugin_scope' ):
307301 self .parse_handler_scope ()
308302
309-
310303 siddhi = self .get_siddhi ()
311304
312305 try :
0 commit comments