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

Fix break line after password input (loadimpact#1703) #1749

Merged
merged 3 commits into from
Dec 7, 2020
Merged

Fix break line after password input (loadimpact#1703) #1749

merged 3 commits into from
Dec 7, 2020

Conversation

paroar
Copy link
Contributor

@paroar paroar commented Nov 30, 2020

Sorry, I deleted the branch instead of update the PR and now is duplicated. Anyway thanks for the pointers before.

Closes #1703

ui/form.go Outdated
@@ -65,6 +65,9 @@ func (f Form) Run(r io.Reader, w io.Writer) (map[string]interface{}, error) {

color.Set(color.FgCyan)
s, err := field.GetContents(r)
if displayLabel == "Password" {
Copy link
Member

Choose a reason for hiding this comment

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

This would be better off as a type assertion, ensuring that field is of type PasswordField.

@codecov-io
Copy link

codecov-io commented Dec 1, 2020

Codecov Report

Merging #1749 (31accdf) into master (62665cf) will increase coverage by 0.07%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1749      +/-   ##
==========================================
+ Coverage   71.37%   71.44%   +0.07%     
==========================================
  Files         178      178              
  Lines       13751    13779      +28     
==========================================
+ Hits         9815     9845      +30     
+ Misses       3324     3321       -3     
- Partials      612      613       +1     
Flag Coverage Δ
ubuntu 71.42% <0.00%> (+0.08%) ⬆️
windows 70.01% <0.00%> (+0.08%) ⬆️

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

Impacted Files Coverage Δ
ui/form.go 58.33% <0.00%> (-5.31%) ⬇️
js/modules/k6/http/request.go 80.14% <0.00%> (-0.51%) ⬇️
js/modules/k6/grpc/client.go 78.82% <0.00%> (-0.36%) ⬇️
cmd/common.go 36.36% <0.00%> (ø)
js/modules/k6/ws/ws.go 81.56% <0.00%> (ø)
cmd/config.go 84.92% <0.00%> (+1.58%) ⬆️
lib/types/types.go 89.55% <0.00%> (+3.98%) ⬆️
lib/testutils/minirunner/minirunner.go 86.04% <0.00%> (+4.65%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62665cf...31accdf. Read the comment docs.

Copy link
Contributor

@imiric imiric left a comment

Choose a reason for hiding this comment

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

Thanks for this!

@imiric imiric merged commit 420dd41 into grafana:master Dec 7, 2020
@na-- na-- added this to the v0.30.0 milestone Dec 7, 2020
salem84 pushed a commit to salem84/k6 that referenced this pull request Feb 3, 2021
* Fix break line after password input (loadimpact#1703)

* PasswordField type assertion

* Form PasswordField type assertion
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.

There is no new line after password prompt for login command
4 participants