struct Obsctl::TUI::Model

Overview

Immutable view model consumed by TUI renderers.

Defined in:

obsctl/tui/model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(snapshot : OBS::State::ObsSnapshot | Nil, command_line : String = "", last_result : String | Nil = nil, logs : Array(String) = [] of String) #

[View source]

Instance Method Detail

def clone #

[View source]
def command_line : String #

def copy_with(snapshot _snapshot = @snapshot, command_line _command_line = @command_line, last_result _last_result = @last_result, logs _logs = @logs) #

[View source]
def last_result : String | Nil #

def logs : Array(String) #

def snapshot : OBS::State::ObsSnapshot | Nil #