1010from src .constants .constants import ACCESS_KEY_ID , BUCKET_NAME , DATE_PATTERN , REGION , SECRET_ACCESS_KEY
1111
1212
13- def configurations_table (credentials : AWSCredentialsDTO ):
13+ def configurations_table (credentials : AWSCredentialsDTO ) -> Table :
1414 table = Table (
1515 title = "\n AWS Configuration" , title_style = "bold cyan" , box = box .ROUNDED , show_header = False , padding = (0 , 1 )
1616 )
@@ -32,7 +32,7 @@ def configurations_table(credentials: AWSCredentialsDTO):
3232 return table
3333
3434
35- def config_file_info_panel () -> None :
35+ def config_file_info_panel () -> Panel :
3636 return Panel (
3737 f"[dim]Configuration file: { ConfigService .CONFIG_FILE } [/dim]\n "
3838 f"[dim]Last modified: { _get_config_last_modified (ConfigService .CONFIG_FILE )} [/dim]" ,
@@ -63,7 +63,7 @@ def _get_config_last_modified(config_file: str) -> str:
6363 return "Unknown"
6464
6565
66- def configurations_with_errors_table (errors : dict [str , str ]) -> Panel :
66+ def configurations_with_errors_table (errors : dict [str , str ]) -> Table :
6767 error_table = Table (
6868 title = "\n Configuration Status" , title_style = "bold red" , box = box .ROUNDED , show_header = False , padding = (0 , 1 )
6969 )
@@ -92,6 +92,7 @@ def add_rows(table, errors):
9292 table .add_row (key_formatted , "[red]✗ Not configured[/red]" )
9393
9494 add_rows (error_table , errors )
95+ return error_table
9596
9697
9798def help_panel () -> Panel :
0 commit comments