Utils
show_api_key_success_message()
Displays a success message after the API key is successfully generated.
show_error_message(e)
Show an error message when the Peter Explains CLI encounters an error.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
e |
Exception
|
The exception that was raised. |
required |
Source code in peter_explains/utils.py
show_loading_message()
async
Show a loading message while the Peter Explains CLI is running.
This function uses the asyncio library to show a loading message while the Peter Explains CLI is running.
Source code in peter_explains/utils.py
show_no_api_key_error()
Function to display a message when the API key is missing.
Source code in peter_explains/utils.py
show_peter_help()
Display the help message for the Peter Explains CLI.
This function displays the help message for the Peter Explains CLI.