Skip to content

Commit efa9354

Browse files
authored
Merge pull request #11 from reugn/develop
v0.3.0
2 parents 70ad2e3 + 893b2da commit efa9354

File tree

12 files changed

+1313
-87
lines changed

12 files changed

+1313
-87
lines changed

.codecov.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: 80%
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Test Coverage
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
go-version: [1.17.x]
11+
steps:
12+
- name: Setup Go
13+
uses: actions/setup-go@v2
14+
with:
15+
go-version: ${{ matrix.go-version }}
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
- name: Run coverage
19+
run: go test . -coverprofile=coverage.out -covermode=atomic
20+
- name: Upload coverage to Codecov
21+
run: bash <(curl -s https://codecov.io/bash)

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.idea/
33
/wifiqr
44
dist/
5+
coverage.out

README.md

Lines changed: 39 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,66 @@
1-
# Wi-Fi QR Code generator
1+
# Wi-Fi QR Code Generator
2+
23
<img src="docs/images/qr.png" align='right'/>
34

45
[![Test Status](https://github.com/reugn/wifiqr/workflows/Test/badge.svg)](https://github.com/reugn/wifiqr/actions?query=workflow%3ATest)
5-
[![PkgGoDev](https://pkg.go.dev/badge/github.com/reugn/wifiqr?tab=doc)](https://pkg.go.dev/github.com/reugn/wifiqr?tab=doc)
6+
[![PkgGoDev](https://pkg.go.dev/badge/github.com/reugn/wifiqr)](https://pkg.go.dev/github.com/reugn/wifiqr)
67
[![Go Report Card](https://goreportcard.com/badge/github.com/reugn/wifiqr)](https://goreportcard.com/report/github.com/reugn/wifiqr)
8+
[![codecov](https://codecov.io/gh/reugn/wifiqr/branch/main/graph/badge.svg)](https://codecov.io/gh/reugn/wifiqr)
79

810
Create a QR code with your Wi-Fi login details.
911

1012
Use Google Lens or other application to scan it and connect automatically.
1113

1214
## Installation
13-
Pick a binary from the [releases](https://github.com/reugn/wifiqr/releases).
1415

15-
### Build from source
16-
Download and install Go https://golang.org/doc/install.
16+
Choose a binary from the [releases](https://github.com/reugn/wifiqr/releases).
17+
18+
### Build from Source
19+
20+
Download and [install Go](https://golang.org/doc/install).
1721

1822
Get the package:
23+
1924
```sh
2025
go get github.com/reugn/wifiqr
2126
```
2227

2328
Read this [guide](https://golang.org/doc/tutorial/compile-install) on how to compile and install the application.
2429

2530
## Usage
31+
2632
```text
27-
Usage of ./wifiqr:
28-
-enc string
29-
The wireless network encryption protocol (WEP, WPA, WPA2). (default "WPA2")
30-
-file string
31-
A png file to write the QR Code (prints to stdout if not set).
32-
-hidden
33-
Hidden SSID.
34-
-key string
35-
A pre-shared key (PSK). You'll be prompted to enter the key if not set.
36-
-size int
37-
Size is both the image width and height in pixels. (default 256)
38-
-ssid string
39-
The name of the wireless network. You'll be prompted to enter the SSID if not set.
40-
-version
41-
Show version.
33+
$ wifiqr --help
34+
wifiqr is a WiFi QR code generator
35+
36+
It is used to create a QR code containing the login details such as
37+
the name, password, and encryption type. This QR code can be scanned
38+
using Google Lens or other QR code reader to connect to the network.
39+
It is Android and iOS compatible.
40+
41+
If the options necessary for creating the QR code are not given on
42+
the command line, the user will be prompted for the information.
43+
44+
Usage:
45+
wifiqr [flags]
46+
47+
Flags:
48+
-h, --help help for wifiqr
49+
--hidden Hidden SSID
50+
-k, --key string Wireless password (pre-shared key / PSK)
51+
-o, --output string PNG file for output (default stdout)
52+
-p, --protocol string Wireless network encryption protocol (WPA2, WPA, WEP, NONE). (default "WPA2")
53+
-s, --size int Image width and height in pixels (default 256)
54+
-i, --ssid string Wireless network name
55+
-v, --version version for wifiqr
4256
```
4357

44-
## Usage example
58+
## Usage Example
59+
4560
```sh
46-
./wifiqr -ssid some_ssid -key 1234 -file qr.png -size 128
61+
./wifiqr --ssid some_ssid --key 1234 --output qr.png --size 128
4762
```
4863

4964
## License
50-
MIT
65+
66+
MIT

0 commit comments

Comments
 (0)