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

add password options + fix password prompts #79

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

nicbus
Copy link
Contributor

@nicbus nicbus commented Jan 18, 2024

This fixes password prompts, which were did not appear on the console, and adds options for btc-hot to provide passwords directly from the command line (for unattended usage).

dr-orlovsky
dr-orlovsky previously approved these changes Jan 18, 2024
Copy link
Member

@dr-orlovsky dr-orlovsky left a comment

Choose a reason for hiding this comment

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

ACK 22bb133

if let Some(pass) = password_arg.clone() {
Ok(pass)
} else {
print!("{prompt}: ");
Copy link
Member

Choose a reason for hiding this comment

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

I think it should be eprint not to mix with the output of the actual program

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The reason I used print! was to keep the previous behavior unchanged.

Using eprint! makes sense to me, though, as the prompts would be visible to the user even when stdout has been redirected.

Updated.

@dr-orlovsky
Copy link
Member

Very good improvement, thank you! Let me know what do you think about my comment, otherwise LGTM

@dr-orlovsky dr-orlovsky added the bug Something isn't working label Jan 18, 2024
@dr-orlovsky dr-orlovsky added this to the v0.10.x milestone Jan 18, 2024
Copy link
Member

@dr-orlovsky dr-orlovsky left a comment

Choose a reason for hiding this comment

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

ACK 22bb133

@dr-orlovsky dr-orlovsky merged commit 40b0d02 into BP-WG:master Jan 18, 2024
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants