Skip to content

Commit ff6f0b2

Browse files
committed
Update entry.py
1 parent 3781136 commit ff6f0b2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cppython/console/entry.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from typing import Annotated
66

77
import typer
8+
from rich import print
89

910
from cppython.console.schema import ConsoleConfiguration, ConsoleInterface
1011
from cppython.core.schema import ProjectConfiguration
@@ -24,11 +25,7 @@ def get_enabled_project(context: typer.Context) -> Project:
2425

2526
project = Project(configuration.project_configuration, configuration.interface, pyproject_data)
2627
if not project.enabled:
27-
typer.secho(
28-
'Error: Project is not enabled. Please check your pyproject.toml configuration.',
29-
fg=typer.colors.RED,
30-
bold=True,
31-
)
28+
print('[bold red]Error: Project is not enabled. Please check your pyproject.toml configuration.[/bold red]')
3229
raise typer.Exit(code=1)
3330
return project
3431

0 commit comments

Comments
 (0)