octoplex/terminal/command.go
2025-02-14 19:06:01 +01:00

27 lines
581 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"
}
// CommandQuit quits the app.
type CommandQuit struct{}
// Name implements the Command interface.
func (c CommandQuit) Name() string {
return "quit"
}
// Command is an interface for commands that can be triggered by the terminal
// user interface.
type Command interface {
Name() string
}