alias

Term2::Cmd

Cmd is an IO operation that returns a message when it's complete. If it's nil it's considered a no-op.

Bubble Tea allows commands to return a nil Msg. In Crystal we support both:

  • commands that always return a message (-> Msg)
  • commands that may return nil (-> Msg?)