MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _clear_logs

Method _clear_logs

pager/pager_menu.py:369–376  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

367 return False
368
369 def _clear_logs(self):
370 try:
371 subprocess.run(['rm', '-rf', LOGS_DIR], timeout=5)
372 os.makedirs(LOGS_DIR, exist_ok=True)
373 except Exception:
374 pass
375 self._show_message("Logs Cleared!", ON_COLOR)
376 time.sleep(0.5)
377
378 def _clear_credentials(self):
379 try:

Callers 1

_show_clear_data_menuMethod · 0.95

Calls 3

_show_messageMethod · 0.95
runMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected