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 generate QR code #330
Add generate QR code #330
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff! A few things:
- I think there should be a CLI switch to disable this function (to keep the UI tidy for people who don't like the visual bloat).
- Could you add a parametrized test for this that checks multiple values for the
qrcode
param and see whether you can trigger the error, too?
Also this needs a rebase. |
Do you also want to tackle the task of printing a QR code in the terminal if requested via option flag? That was part of issue #45 but it should likely be done in a separate PR if you want to do it. |
It may be considered to add a CLI switch, but is there too many switches at present, it is difficult for users to understand each function, maybe we can make the style smaller?
Ok i will add as soon as possible.
Yes, but what characters should we use? The terminal cannot be completely set to a square, because it is impossible to control the user’s Reference: qrcode-rust Using " " and "██" may be closer, but it will take up more space, users need to change the size of the terminal before they can scan. |
I definitely am worried about making the tool too complex as it touts itself as being simple. However, I think at current we can handle a
True, though its unicode mode works well enough for me so let's just roll with that for the time being. |
FWIW the unicode string mode is gapless for me. |
I added the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking pretty good now, I like the flag.
Can you add this feature to the list of features in the README? I think it's worth mentioning. :)
Any chance you can get rid of your merge commit and make it a rebase instead? Two actual commits are fine of course but the merge commit itself is not useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Great work, thanks.
#45