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

Nit: better text asking for copying #136

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Conversation

jotak
Copy link
Member

@jotak jotak commented Dec 11, 2024

It's conventional and more user-friendly to tell which answers are accepted (even if more than that would actually work), so user isn't worried about typing wrong things

Also, no space before question mark in English

@jotak jotak added the no-qe label Dec 11, 2024
@jotak jotak requested a review from jpinsonneau December 11, 2024 08:21
scripts/functions.sh Outdated Show resolved Hide resolved
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 22.66%. Comparing base (245f6a0) to head (74a4b30).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #136   +/-   ##
=======================================
  Coverage   22.66%   22.66%           
=======================================
  Files          10       10           
  Lines        1337     1337           
=======================================
  Hits          303      303           
  Misses       1015     1015           
  Partials       19       19           
Flag Coverage Δ
unittests 22.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

It's conventional and more user-friendly to tell which prompts are
accepted (even if more than that would actually work), so user isn't
worried about typing wrong things

Also, no space before question mark in English

Update scripts/functions.sh
@@ -251,7 +251,7 @@ function cleanup {
copyOutput
elif [ "$copy" = "prompt" ]; then
while true; do
read -rp "Copy the capture output locally ?" yn
read -rp "Copy the capture output locally? [yes/no] " yn
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also manage the fully written word "yes" and "no" then ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm correct, full yes/no already works (anything starting with a y or with a n works)
I wrote that based on the text below that already says:
"*) echo "Please answer yes or no." ;;"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed it already works 🆗

@jotak
Copy link
Member Author

jotak commented Jan 8, 2025

/approve

Copy link

openshift-ci bot commented Jan 8, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jotak

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Jan 8, 2025
@jotak jotak merged commit 42be610 into netobserv:main Jan 8, 2025
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants