Skip to content

Conversation

@ccmtaylor
Copy link
Contributor

use package rsc.io/qr to generate QR codes and display them in the terminal using ANSI escape codes.

Screenshot:
image

inspired by #41, but doesn't require installing a separate cli tool

the call site in main() exits on error, so this seems unnecessary here
@ccmtaylor ccmtaylor force-pushed the device-qrcode branch 2 times, most recently from 661e5c4 to 1726118 Compare October 14, 2025 19:22
use package rsc.io/qr to generate QR codes and display them in the
terminal using ANSI escape codes.
@ccmtaylor
Copy link
Contributor Author

tested with echo host=gitlab.com | go run . -device get

@hickford
Copy link
Owner

hickford commented Oct 17, 2025

Super cool! Works for me too.

Before merging, I'll check the packaging implications for Debian and Fedora...

@hickford
Copy link
Owner

hickford commented Oct 18, 2025

Fedora has 0.2.0 https://packages.fedoraproject.org/pkgs/golang-rsc-qr/golang-rsc-qr-devel/

Debian has an older, untagged version 0.0~git20161121.48b2ede https://packages.debian.org/source/sid/golang-rsc-qr ideally that should be updated

@ccmtaylor
Copy link
Contributor Author

ccmtaylor commented Oct 21, 2025 via email

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.

2 participants