Index
taskcat
¶
taskcat python module
Template(template_path, project_root='', url='', s3_key_prefix='', template_cache=tcat_template_cache)
¶
Source code in taskcat/_cfn/template.py
write()
¶
writes raw_template back to file, and reloads decoded template, useful if the template has been modified
Source code in taskcat/_cfn/template.py
main(cli_core_class=CliCore, exit_func=exit_with_code)
¶
Main entry point for the TaskCat CLI application.
This function orchestrates the entire CLI workflow including: - Signal handling setup for graceful interruption - Logging configuration - Command-line argument parsing - CLI module initialization and execution - Error handling and reporting
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cli_core_class
|
class
|
CLI core class to use for parsing and execution. Defaults to CliCore. Used for dependency injection in testing. |
CliCore
|
exit_func
|
callable
|
Function to call for program exit. Defaults to exit_with_code. Used for testing. |
exit_with_code
|
Raises:
Type | Description |
---|---|
TaskCatException
|
For known TaskCat-specific errors |
Exception
|
For unexpected errors during execution |