Add helper for formatting long warning messages
I solved Issue #2559 by creation the function "format_message_to_asterisk_box", that formatting message to asterisk box representation.
It takes this args: message (str): The message to format. title (str, optional): The title of the box. Defaults to None. width (int, optional): The width of the box. Defaults to 80. border_char (str, optional): The character to use for the border. Defaults to "*". padding (int, optional): The number of spaces to pad the border. Defaults to 2.
Also I added tests for it. Function it seems working good.
But I was not sure in what file to put function. Now its location and tests by this paths: src/briefcase/utils.py tests/test_utils.py
It is my very first attempt of contribution. Please don beat me hard)
I am waiting for your feedback.
PR Checklist:
- [x] All new features have been tested
- [x] All new features have been documented
- [x] I have read the CONTRIBUTING.md file
- [x] I will abide by the code of conduct