"""The AaC Version plugin implementation module."""# NOTE: It is safe to edit this file.# This file is only initially generated by aac gen-plugin, and it won't be overwritten if the file already exists.# There may be some unused imports depending on the definition of the plugin...but that's okfromaac.execute.aac_execution_resultimport(ExecutionResult,ExecutionStatus,ExecutionMessage,MessageLevel,)fromaacimport__version__plugin_name="Version"
[docs]defversion()->ExecutionResult:"""Business logic for the version command."""status=ExecutionStatus.SUCCESSmessages:list[ExecutionMessage]=[]version_msg=ExecutionMessage(f"{__version__}",MessageLevel.INFO,None,None,)messages.append(version_msg)returnExecutionResult(plugin_name,"version",status,messages)