package terminal // CommandAddDestination adds a destination. type CommandAddDestination struct { DestinationName string URL string } // Name implements the Command interface. func (c CommandAddDestination) Name() string { return "add_destination" } // CommandRemoveDestination removes a destination. type CommandRemoveDestination struct { URL string } // Name implements the Command interface. func (c CommandRemoveDestination) Name() string { return "remove_destination" } // CommandStartDestination starts a destination. type CommandStartDestination struct { URL string } // Name implements the Command interface. func (c CommandStartDestination) Name() string { return "start_destination" } // CommandStopDestination stops a destination. type CommandStopDestination struct { URL string } // Name implements the Command interface. func (c CommandStopDestination) Name() string { return "stop_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 }