struct Obsctl::IPC::CommandPayload

Overview

Typed command payload sent by CLI and TUI clients to the local daemon.

Defined in:

obsctl/ipc/request.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, target : String | Nil = nil, percent : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(name _name = @name, target _target = @target, percent _percent = @percent) #

[View source]
def name : String #

def percent : Int32 | Nil #

def target : String | Nil #

def to_json(json : JSON::Builder) : Nil #

Writes the wire-format JSON object for this command payload.


[View source]