aac.plugins.generate.generate_impl¶
AaC Plugin implementation module for the Version plugin.
Functions
|
Backs up a file by appending .aac_backup to the file name. |
|
Clean up generated code, tests, and docs. |
|
Generate content from your AaC architecture. |
|
Returns a callable function from a package, file, and function name. |
|
Returns the output directories for code, tests, and docs. |
|
Returns the output file path for a generator template. |
|
Load a jinja2 template from a file. |
- aac.plugins.generate.generate_impl.backup_file(file_path: str) str [source]¶
Backs up a file by appending .aac_backup to the file name.
- Parameters:
file_path (str)
- Return type:
str
- aac.plugins.generate.generate_impl.clean(aac_file: str, code_output: str, test_output: str, doc_output: str, no_prompt: bool) ExecutionResult [source]¶
Clean up generated code, tests, and docs.
- Parameters:
aac_file (str)
code_output (str)
test_output (str)
doc_output (str)
no_prompt (bool)
- Return type:
- aac.plugins.generate.generate_impl.generate(aac_file: str, generator_file: str, code_output: str, test_output: str, doc_output: str, no_prompt: bool, force_overwrite: bool, evaluate: bool) ExecutionResult [source]¶
Generate content from your AaC architecture.
- Parameters:
aac_file (str)
generator_file (str)
code_output (str)
test_output (str)
doc_output (str)
no_prompt (bool)
force_overwrite (bool)
evaluate (bool)
- Return type:
- aac.plugins.generate.generate_impl.get_callable(package_name: str, file_name: str, function_name: str) Callable [source]¶
Returns a callable function from a package, file, and function name.
- Parameters:
package_name (str)
file_name (str)
function_name (str)
- Return type:
Callable
- aac.plugins.generate.generate_impl.get_output_directories(message: str, aac_plugin_file: str, code_output: str, test_output: str, doc_output: str, no_prompt: bool) tuple[str, str, str] [source]¶
Returns the output directories for code, tests, and docs.
- Parameters:
message (str)
aac_plugin_file (str)
code_output (str)
test_output (str)
doc_output (str)
no_prompt (bool)
- Return type:
tuple[str, str, str]
- aac.plugins.generate.generate_impl.get_output_file_path(root_output_directory: str, generator_template, source_package: str, source_name: str) str [source]¶
Returns the output file path for a generator template.
- Parameters:
root_output_directory (str)
source_package (str)
source_name (str)
- Return type:
str