octoplex/terminal/command.go
2025-01-23 22:22:14 +01:00

19 lines
427 B
Go

package terminal
// CommandToggleDestination toggles a destination from on-air to off-air, or
// vice versa.
type CommandToggleDestination struct {
URL string
}
// Name implements the Command interface.
func (c CommandToggleDestination) Name() string {
return "toggle_destination"
}
// Command is an interface for commands that can be triggered by the terminal
// user interface.
type Command interface {
Name() string
}