struct Obsctl::Domain::CommandResult

Overview

Text result returned by command handlers for display-oriented clients.

Defined in:

obsctl/domain/command_result.cr

Constructors

Instance Method Summary

Constructor Detail

def self.failed(message : String) : self #

Builds a failed command result.


[View source]
def self.new(ok : Bool, message : String) #

[View source]
def self.ok(message : String) : self #

Builds a successful command result.


[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(ok _ok = @ok, message _message = @message) #

[View source]
def message : String #

def ok : Bool #