Sign inSign up
qr logo

qmcgaw/qr

By qmcgaw

•Updated about 7 years ago

Generates QR code in your terminal

Image
0

2.1K

qmcgaw/qr repository overview

⁠QR

Generate QR code from strings in your terminal

qr

Build Status Docker Build Status

GitHub last commit GitHub commit activity GitHub issues

Docker Pulls Docker Stars Docker Automated

Image size Image version

Donate PayPal

Image size
1.56MB

⁠Setup

⁠Go binary
  1. Install Go

  2. Download the repository

  3. Download dependencies

    go mod download
    
  4. Build the binary

    go build
    # maybe fix the permissions
    chmod 777 qr
    
  5. Use the binary with

    qr mystring
    
⁠Docker
  1. CLICK IF YOU HAVE AN ARM DEVICE

    • If you have a ARM 32 bit v6 architecture

      docker build -t qmcgaw/qr \
      --build-arg BASE_IMAGE_BUILDER=arm32v6/golang \
      --build-arg GOARCH=arm \
      --build-arg GOARM=6 \
      https://github.com/qdm12/qr.git
      
    • If you have a ARM 32 bit v7 architecture

      docker build -t qmcgaw/qr \
      --build-arg BASE_IMAGE_BUILDER=arm32v7/golang \
      --build-arg GOARCH=arm \
      --build-arg GOARM=7 \
      https://github.com/qdm12/qr.git
      
    • If you have a ARM 64 bit v8 architecture

      docker build -t qmcgaw/qr \
      --build-arg BASE_IMAGE_BUILDER=arm64v8/golang \
      --build-arg GOARCH=arm64 \
      https://github.com/qdm12/qr.git
      

  2. Use the following command:

    docker run -it --rm qmcgaw/qr mystring
    
  3. You can create an alias, for example:

    echo "alias qr='docker run -it --rm qmcgaw/qr'" >> ~/.zshrc
    

    And then use it with qr mystring

⁠Development

⁠Using VSCode and Docker
  1. Install Docker⁠
    • On Windows, share a drive with Docker Desktop and have the project on that partition
  2. With Visual Studio Code⁠, install the remote containers extension⁠
  3. In Visual Studio Code, press on F1 and select Remote-Containers: Open Folder in Container...
  4. Your dev environment is ready to go!... and it's running in a container :+1:

⁠TODOs

  • Title image
  • GIF to show in action

⁠License

This repository is under an MIT license⁠

Tag summary

Content type

Image

Digest

Size

609.4 kB

Last updated

about 7 years ago

docker pull qmcgaw/qr