aac.execute.command_line

The entry-point for the command line interface for the aac tool.

Functions

handle_exceptions(plugin_name, func)

Decorator to catch and handle exceptions in a function.

initialize_cli()

Initialize the CLI.

output_result(result)

Output the result of the command.

to_click_command(plugin_name, command)

Convert an AacCommand to a Click Command.

to_click_parameter(argument)

Convert an AacCommandArgument to a Click Parameter.

to_click_type(type_name)

Convert the named type to a type recognized by Click.

aac.execute.command_line.handle_exceptions(plugin_name: str, func: Callable) Callable[source]

Decorator to catch and handle exceptions in a function.

Parameters:
  • plugin_name (str)

  • func (Callable)

Return type:

Callable

aac.execute.command_line.initialize_cli()[source]

Initialize the CLI.

aac.execute.command_line.output_result(result: ExecutionResult)[source]

Output the result of the command.

Parameters:

result (ExecutionResult)

aac.execute.command_line.to_click_command(plugin_name: str, command: AacCommand) Command[source]

Convert an AacCommand to a Click Command.

Parameters:
Return type:

Command

aac.execute.command_line.to_click_parameter(argument: AacCommandArgument) Parameter[source]

Convert an AacCommandArgument to a Click Parameter.

Parameters:

argument (AacCommandArgument)

Return type:

Parameter

aac.execute.command_line.to_click_type(type_name: str) ParamType[source]

Convert the named type to a type recognized by Click.

Parameters:

type_name (str)

Return type:

ParamType