[openSUSE/osc] 52d014: New get_user_input() function for consistent handl...
Branch: refs/heads/master Home: https://github.com/openSUSE/osc Commit: 52d014d24d83270ed57935c725108ebd0b7b34ec https://github.com/openSUSE/osc/commit/52d014d24d83270ed57935c725108ebd0b7b3... Author: Daniel Mach <daniel.mach@suse.com> Date: 2024-02-08 (Thu, 08 Feb 2024) Changed paths: M osc/output/__init__.py A osc/output/input.py Log Message: ----------- New get_user_input() function for consistent handling of user input. The available answers are provided in a dictionary and the prompt is generated from them. Also, answers are higlighted if the terminal supports it. Commit: 6688ffd5d9053369ed56a30b7239ced6f0a18de1 https://github.com/openSUSE/osc/commit/6688ffd5d9053369ed56a30b7239ced6f0a18... Author: Daniel Mach <daniel.mach@suse.com> Date: 2024-02-08 (Thu, 08 Feb 2024) Changed paths: M osc/commandline.py Log Message: ----------- Change 'osc wipe' command to use the new get_user_input() function. Example:
Really wipe '/var/tmp/build-root/openSUSE_Tumbleweed-x86_64'? [y/N]: changed to: Really wipe '/var/tmp/build-root/openSUSE_Tumbleweed-x86_64'? y)yes / n)no (default=n):
Commit: e4806286708d7795a9e1139bfc0095a87a6a69aa https://github.com/openSUSE/osc/commit/e4806286708d7795a9e1139bfc0095a87a6a6... Author: Daniel Mach <daniel.mach@suse.com> Date: 2024-02-09 (Fri, 09 Feb 2024) Changed paths: M osc/commandline.py M osc/output/__init__.py A osc/output/input.py Log Message: ----------- Merge pull request #1480 from dmach/get_user_input New get_user_input() function for consistent handling of user input. Compare: https://github.com/openSUSE/osc/compare/9070d03cb662...e4806286708d
participants (1)
-
Daniel Mach