Entrypoints¶
Main entry point for the review assist application.
This module implements the command-line interface (CLI) application for assisting with review processes. It includes argument parsing, user onboarding, dependency configuration, logging setup, and executing various commands like checking system health, displaying configuration, showing a version, and handling change review requests.
PathAction
¶
cli()
¶
Executes the command-line interface (CLI) application.
This function serves as the entry point for the CLI application. It parses and processes command-line arguments, sets up logging and traceback handling, handles onboarding with a welcome message, configures application dependencies, and determines the command to execute based on the provided arguments.
load_dependencies(args, container)
¶
Loads and configures dependencies for the application.
This function initialises and sets up the necessary dependencies based on the provided arguments and the dependency injection container.
It attempts to configure the dependencies, and in case of a configuration error, it verifies a token (prompting the user for one) to ensure a valid state before attempting the configuration again.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
Namespace
|
The command-line arguments or configuration values. |
required |
container
|
Container
|
The dependency injection container used for managing application services. |
required |
Raises:
| Type | Description |
|---|---|
RAConfigError
|
If the configuration process fails, and the interactive token verification does not rectify the issue. |
process_cli_arguments()
¶
Parse command-line arguments and return the parsed arguments and parser.
select_command(args, container, logger, parser)
¶
Select the appropriate command based on the provided arguments.
setup_log_traceback(args)
¶
Configure logging and traceback settings.
main()
¶
Main entry point for the application.