struct Obsctl::TUI::Input::Action

Overview

Result of handling one input key.

Defined in:

obsctl/tui/input/controller.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(kind : ActionKind, command : String | Nil = nil) #

[View source]
def self.none : self #

No UI update or command is needed.


[View source]
def self.quit : self #

The TUI should exit.


[View source]
def self.render : self #

The current model should be rendered again.


[View source]
def self.submit(command : String) : self #

The supplied command line should be executed.


[View source]

Instance Method Detail

def clone #

[View source]
def command : String | Nil #

def copy_with(kind _kind = @kind, command _command = @command) #

[View source]
def kind : ActionKind #