-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for websocket client + notifications
- Loading branch information
1 parent
d74fc2c
commit 47f186e
Showing
7 changed files
with
125 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,13 @@ import ( | |
"strings" | ||
"sync" | ||
|
||
"math/rand" | ||
|
||
mqtt "github.com/eclipse/paho.mqtt.golang" | ||
"github.com/jcodybaker/shellyctl/pkg/discovery" | ||
"github.com/rs/zerolog/log" | ||
"github.com/spf13/pflag" | ||
"github.com/spf13/viper" | ||
"golang.org/x/exp/rand" | ||
"golang.org/x/term" | ||
) | ||
|
||
|
@@ -47,6 +48,12 @@ func discoveryFlags(f *pflag.FlagSet, opts discoveryFlagsOptions) { | |
"mDNS names must be within the zone specified by the `--mdns-zone` flag (default `local`).\n"+ | ||
"URL formatted auth is supported (ex. `http://admin:[email protected]/`)") | ||
|
||
f.String( | ||
"local-id", | ||
"shellyctl-${PID}", | ||
"local src id to use. ${PID} will be replaced with the current process id, ${RANDOM} with a random int", | ||
) | ||
|
||
f.Bool( | ||
"mdns-search", | ||
false, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters