abstract struct Obsctl::Domain::Command

Overview

Base type for parsed CLI commands.

A command knows its own IPC identity and payload arguments, so every surface that has to put one on the wire — the thin CLI client and the TUI dispatcher — builds the payload the same way instead of maintaining its own type-to-name table.

Direct Known Subclasses

Defined in:

obsctl/domain/command.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def initialize #

[View source]
def ipc_name : String | Nil #

IPC command name, or nil for commands resolved entirely client-side.


[View source]
def percent : Int32 | Nil #

Payload percentage, for commands that carry a level.


[View source]
def target : String | Nil #

Payload target, for commands that address a named OBS resource.


[View source]