File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 55from typing import Annotated
66
77import typer
8+ from rich import print
89
910from cppython .console .schema import ConsoleConfiguration , ConsoleInterface
1011from 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
You can’t perform that action at this time.
0 commit comments