Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New get_user_input() function for consistent handling of user input. #1480

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

dmach
Copy link
Contributor

@dmach dmach commented Feb 8, 2024

Change 'osc wipe' command to use the new get_user_input() function.

Copy link

codecov bot commented Feb 8, 2024

Codecov Report

Attention: 32 lines in your changes are missing coverage. Please review.

Comparison is base (4240305) 31.46% compared to head (6688ffd) 31.46%.
Report is 10 commits behind head on master.

Files Patch % Lines
osc/output/input.py 21.87% 25 Missing ⚠️
osc/meter.py 86.20% 4 Missing ⚠️
osc/commandline.py 25.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1480      +/-   ##
==========================================
- Coverage   31.46%   31.46%   -0.01%     
==========================================
  Files          49       50       +1     
  Lines       17884    17916      +32     
==========================================
+ Hits         5628     5637       +9     
- Misses      12256    12279      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

osc/output/input.py Outdated Show resolved Hide resolved
osc/output/input.py Show resolved Hide resolved
osc/output/input.py Outdated Show resolved Hide resolved
osc/output/input.py Outdated Show resolved Hide resolved
osc/output/input.py Show resolved Hide resolved
dmach added 2 commits February 8, 2024 14:33
The available answers are provided in a dictionary and the prompt is
generated from them.
Also, answers are higlighted if the terminal supports it.
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):
@dmach dmach merged commit e480628 into openSUSE:master Feb 9, 2024
33 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants