Main
main
¶
Main entry point for the gwmock_pop CLI application.
Classes¶
Functions¶
version_callback
¶
version_callback(value: bool) -> None
A callback function to log version information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
bool
|
A boolean input. If True, log the version information. |
required |
setup_logging
¶
setup_logging(level: LoggingLevel = LoggingLevel.INFO) -> None
Set up logging with Rich handler.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
level
|
LoggingLevel
|
Logging level. |
INFO
|
main
¶
main(verbose: Annotated[LoggingLevel, Option('--verbose', help='Set verbosity level.')] = LoggingLevel.INFO, version: Annotated[bool | None, Option('--version', '-v', callback=version_callback, help='Log the version information.')] = None) -> None
Main entry point for the CLI application.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
verbose
|
Annotated[LoggingLevel, Option('--verbose', help='Set verbosity level.')]
|
Verbosity level for logging. |
INFO
|
version
|
Annotated[bool | None, Option('--version', '-v', callback=version_callback, help='Log the version information.')]
|
Log the version information. |
None
|