#!/usr/bin/env bash

brt_qr() {
  local text="${*:-}"
  if [[ -z "$text" ]]; then
    brt_error "Usage: brt -qr <text>"
    exit 1
  fi

  if command -v qrencode &>/dev/null; then
    qrencode -t ANSIUTF8 "$text"
  else
    brt_warn "qrencode not installed. Text: ${text}"
    brt_info "Install with: brew install qrencode"
  fi
}
