Skip to content

Commit

Permalink
Changes to UI
Browse files Browse the repository at this point in the history
---

- Changed menu option descriptions.
- Added generated logger description to `config_log` method.

Signed-off-by: schlopp96 <71921821+schlopp96@users.noreply.github.com>
  • Loading branch information
schlopp96 committed Sep 7, 2022
1 parent ef4d821 commit 33fa0f3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion UpgradePipPkgs/app/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def get_input() -> int:
while True:
try:
prompt: str = input(
f'|{"*"*78}|\n| > Upgrade all outdated global pip packages? |\n| > Enter [1] to get list of outdated pip pkgs before upgrading list contents. |\n| > Enter [2] to "brute-force" upgrade pip pkgs (longer but more verbose). |\n| > Enter [3] to exit program. |\n|{"*"* 78}|\n>>> '
f'|{"*"*78}|\n| > Please choose an option: |\n| |\n| > Enter [1] to upgrade outdated pip pkgs. |\n| > Enter [2] to upgrade all installed pip pkgs (longer but more verbose). |\n| > Enter [3] to exit program. |\n|{"*"* 78}|\n>>> '
)
print()
return int(prompt)
Expand Down
9 changes: 9 additions & 0 deletions UpgradePipPkgs/app/loggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
def config_logs() -> tuple[logging.Logger, logging.Logger, logging.Logger]:
"""Generate program loggers.
- `logger_file`:
- Logger for low-level program operations.
- `logger_main`:
- Logger for general program flow.
- `logger_upgrade`:
- Logger for all events during upgrade subprocess.
---
:return: program logging configuration.
Expand Down
1 change: 1 addition & 0 deletions UpgradePipPkgs/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
logger_main = loggers.logger_main
menu = events.menu() # Start program event flow.


def main() -> NoReturn | None:
"""Program entry point.
Expand Down

0 comments on commit 33fa0f3

Please sign in to comment.