File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ NAME:
3+ semtech-bridge - Semtech UDP protocol speaking gateway <-> MQTT
4+
5+ USAGE:
6+ main [global options] command [command options] [arguments...]
7+
8+ COMMANDS:
9+ help, h Shows a list of commands or help for one command
10+
11+ GLOBAL OPTIONS:
12+ --udp-bind "0.0.0.0:1700" ip:port to bind the UDP listener to [$UDP_BIND]
13+ --mqtt-server "tcp://127.0.0.1:1883" MQTT server [$MQTT_SERVER]
14+ --mqtt-username MQTT username [$MQTT_USERNAME]
15+ --mqtt-password MQTT password [$MQTT_PASSWORD]
16+ --help, -h show help
17+ --version, -v print the version
18+
19+
20+ */
21+ package main
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ echo ' /*' > doc.go
4+ go run main.go help >> doc.go
5+ echo >> doc.go
6+ echo ' */' >> doc.go
7+ echo -e " package main" >> doc.go
Original file line number Diff line number Diff line change 11package main
22
3+ //go:generate ./doc.sh
4+
35import (
46 "os"
57 "os/signal"
You can’t perform that action at this time.
0 commit comments