paulfariello / aparte

Simple XMPP console client written in Rust and inspired by Profanity.
Mozilla Public License 2.0
121 stars 16 forks source link

Allow to define password in config file (closes #8) #28

Closed xmppftw closed 6 months ago

xmppftw commented 1 year ago

The only thing not clear is this line.

I'm not sure if it's because of Password type or if it could be solved with Option but it seems passing the password from there and/or passing nothing opens a prompt even when the password is set in config.

Ideas?

paulfariello commented 7 months ago

Thanks for the PR, and sorry for the way too long response time.

Password prompt is handled with the command! macro, it need some rework to be able to check for a field in connection_info in order to avoid prompting. I'll give a look at it.