aac.plugins.gen_plugin.gen_plugin_impl

AaC Plugin implementation module for the Version plugin.

Functions

after_gen_plugin_generate(aac_plugin_file, ...)

Generate the plugin by running generate command.

after_gen_project_generate(aac_project_file, ...)

Generate the project by running generate command.

before_gen_plugin_check(aac_plugin_file, ...)

Run the Check AaC command before the gen-plugin command.

before_gen_project_check(aac_project_file, ...)

Run the Check AaC command before the gen-project command.

gen_plugin(aac_plugin_file, code_output, ...)

Gen-plugin command entry point.

gen_project(aac_project_file, output, ...)

Gen-project command entry.

aac.plugins.gen_plugin.gen_plugin_impl.after_gen_plugin_generate(aac_plugin_file: str, code_output: str, test_output: str, doc_output: str, no_prompt: bool, force_overwrite: bool, evaluate: bool, generate: Callable) ExecutionResult[source]

Generate the plugin by running generate command.

Parameters:
  • aac_plugin_file (str)

  • code_output (str)

  • test_output (str)

  • doc_output (str)

  • no_prompt (bool)

  • force_overwrite (bool)

  • evaluate (bool)

  • generate (Callable)

Return type:

ExecutionResult

aac.plugins.gen_plugin.gen_plugin_impl.after_gen_project_generate(aac_project_file: str, output: str, no_prompt: bool, force_overwrite: bool, evaluate: bool, generate: Callable) ExecutionResult[source]

Generate the project by running generate command.

Parameters:
  • aac_project_file (str)

  • output (str)

  • no_prompt (bool)

  • force_overwrite (bool)

  • evaluate (bool)

  • generate (Callable)

Return type:

ExecutionResult

aac.plugins.gen_plugin.gen_plugin_impl.before_gen_plugin_check(aac_plugin_file: str, code_output: str, test_output: str, doc_output: str, no_prompt: bool, force_overwrite: bool, evaluate: bool, run_check) ExecutionResult[source]

Run the Check AaC command before the gen-plugin command.

Parameters:
  • aac_plugin_file (str)

  • code_output (str)

  • test_output (str)

  • doc_output (str)

  • no_prompt (bool)

  • force_overwrite (bool)

  • evaluate (bool)

Return type:

ExecutionResult

aac.plugins.gen_plugin.gen_plugin_impl.before_gen_project_check(aac_project_file: str, output: str, no_prompt: bool, force_overwrite: bool, evaluate: bool, run_check) ExecutionResult[source]

Run the Check AaC command before the gen-project command.

Parameters:
  • aac_project_file (str)

  • output (str)

  • no_prompt (bool)

  • force_overwrite (bool)

  • evaluate (bool)

Return type:

ExecutionResult

aac.plugins.gen_plugin.gen_plugin_impl.gen_plugin(aac_plugin_file: str, code_output: str, test_output: str, doc_output: str, no_prompt: bool, force_overwrite: bool, evaluate: bool) ExecutionResult[source]

Gen-plugin command entry point.

Parameters:
  • aac_plugin_file (str)

  • code_output (str)

  • test_output (str)

  • doc_output (str)

  • no_prompt (bool)

  • force_overwrite (bool)

  • evaluate (bool)

Return type:

ExecutionResult

aac.plugins.gen_plugin.gen_plugin_impl.gen_project(aac_project_file: str, output: str, no_prompt: bool, force_overwrite: bool, evaluate: bool) ExecutionResult[source]

Gen-project command entry.

Parameters:
  • aac_project_file (str)

  • output (str)

  • no_prompt (bool)

  • force_overwrite (bool)

  • evaluate (bool)

Return type:

ExecutionResult