Use Bubbletea::Command to trigger side effects
mainIn the Bubble Tea architecture, Command objects are used to trigger side effects (like I/O, timers, or quitting) from within your update function. Instead of performing the action directly, you return a Command object, which the runtime then executes.
You should use the convenience methods provided on the Bubbletea::Command class to instantiate these objects.
# Example of returning a command in an update loop
# (Conceptual usage)
def update(msg)
case msg
when KeyDown
Bubbletea::Command.quit
end
end