Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "publish", Short: "publish a message to all connected websocket subscribers", Run: func(cmd *cobra.Command, args []string) { if payload == "" { log.Info("using a default event") payload = defaultEvent() } err := makeRequest(payload) if err != nil { log.Error(err) return } log.Info("published") }, }
Cmd is the command for the cli tool
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.