html_formatter
appimage_updater.ui.output.html_formatter
¶
HTML output formatter implementation.
HTMLOutputFormatter(**kwargs)
¶
HTML output formatter for web-based display.
This formatter collects all output data and produces an HTML document suitable for web display or reporting.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
**kwargs
|
Any
|
Additional arguments (ignored for compatibility) |
{}
|
Source code in src/appimage_updater/ui/output/html_formatter.py
content = []
instance-attribute
¶
end_section()
¶
finalize()
¶
Finalize HTML output and print the complete HTML document.
Returns:
Type | Description |
---|---|
str | None
|
None (output goes directly to stdout) |
Source code in src/appimage_updater/ui/output/html_formatter.py
print(message, **kwargs)
¶
Add a message to HTML output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
The message to add |
required |
**kwargs
|
Any
|
Additional options (ignored for HTML) |
{}
|
Source code in src/appimage_updater/ui/output/html_formatter.py
print_application_list(applications)
¶
Add application list to HTML output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
applications
|
list[dict[str, Any]]
|
List of application dictionaries |
required |
Source code in src/appimage_updater/ui/output/html_formatter.py
print_check_results(results)
¶
Add check results to HTML output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
results
|
list[dict[str, Any]]
|
List of check result dictionaries |
required |
Source code in src/appimage_updater/ui/output/html_formatter.py
print_config_settings(settings)
¶
Add configuration settings to HTML output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
settings
|
dict[str, Any]
|
Dictionary of configuration settings |
required |
Source code in src/appimage_updater/ui/output/html_formatter.py
print_error(message)
¶
Add error message to HTML output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
Error message to add |
required |
Source code in src/appimage_updater/ui/output/html_formatter.py
print_info(message)
¶
Add info message to HTML output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
Info message to add |
required |
Source code in src/appimage_updater/ui/output/html_formatter.py
print_progress(current, total, description='')
¶
Add progress information to HTML output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
current
|
int
|
Current progress value |
required |
total
|
int
|
Total progress value |
required |
description
|
str
|
Optional progress description |
''
|
Source code in src/appimage_updater/ui/output/html_formatter.py
print_success(message)
¶
Add success message to HTML output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
Success message to add |
required |
Source code in src/appimage_updater/ui/output/html_formatter.py
print_table(data, title='', headers=None)
¶
Add tabular data to HTML output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
list[dict[str, Any]]
|
List of dictionaries representing table rows |
required |
title
|
str
|
Optional table title |
''
|
headers
|
list[str] | None
|
Optional custom headers |
None
|
Source code in src/appimage_updater/ui/output/html_formatter.py
print_warning(message)
¶
Add warning message to HTML output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
Warning message to add |
required |
Source code in src/appimage_updater/ui/output/html_formatter.py
start_section(title)
¶
Start a new output section in HTML.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
title
|
str
|
Section title |
required |