Obsctl::Domain::CommandSpec
One command, declared once.
This is the single source of truth for the command set. The parser, the
--json allowlist, palette completion, --help, and the generated shell
completions all read it, so a command cannot exist on one surface and be
missing from another.
Constructors
new(name : String, summary : String, build : Proc(Array(String), Command), aliases : Array(String) = [] of String, arguments : Array(ArgumentKind) = [] of ArgumentKind, required_arguments : Int32 = -1, surface : CommandSurface = CommandSurface::Cli | CommandSurface::Palette, json : Bool = false)
SourceInstance methods
aliases
Sourcearguments
Sourcebuild
Sourcecli?
Sourcejson?
Sourcename
Sourcepalette?
Sourcerequired_arguments
Sourcesummary
Sourcesurface
Source