status command

This commit is contained in:
phernandez
2024-12-27 10:16:53 -06:00
parent 439e4dc11a
commit fb062bf6f8
3 changed files with 248 additions and 75 deletions
+2
View File
@@ -4,6 +4,7 @@ import asyncio
from typing import Set, Dict
import typer
from loguru import logger
from rich.console import Console
from rich.panel import Panel
from rich.tree import Tree
@@ -179,5 +180,6 @@ def status(
sync_service = asyncio.run(get_sync_service())
asyncio.run(run_status(sync_service, verbose))
except Exception as e:
logger.error(f"Error checking status: {e}")
typer.echo(f"Error checking status: {e}", err=True)
raise typer.Exit(1)