Documentation ¶
Index ¶
- Constants
- func Edit(ctx *cli.Context, prev *structureSpec.Messaging) error
- func GetMQTT(ctx *cli.Context, prev ...bool) bool
- func GetOrRequireAChannelMatch(ctx *cli.Context, prev ...string) string
- func GetOrSelect(ctx *cli.Context) (*structureSpec.Messaging, error)
- func GetWebSocket(ctx *cli.Context, prev ...bool) bool
- func New(ctx *cli.Context) (*structureSpec.Messaging, error)
Constants ¶
View Source
const ( NamePrompt = "Messaging Name:" SelectPrompt = "Select a Messaging:" ChannelMatch = "Channel Match:" MQTTPrompt = "Enable MQTT bridge:" WebSocketPrompt = "Enable WebSocket bridge:" CreateThis = "Create this messaging?" DeleteThis = "Delete this messaging?" EditThis = "Edit this messaging?" NoneFound = "no messaging channels found" NotFound = "messaging `%s` not found" )
Variables ¶
This section is empty.
Functions ¶
func Edit ¶
func Edit(ctx *cli.Context, prev *structureSpec.Messaging) error
func GetOrSelect ¶
func GetOrSelect(ctx *cli.Context) (*structureSpec.Messaging, error)
GetOrSelect will try to get the messaging from a name flag if it is not set in the flag it will offer a selection menu
func GetWebSocket ¶
func New ¶
func New(ctx *cli.Context) (*structureSpec.Messaging, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.