Skip to content

ExecutableCommand interface

Home > streplts > ExecutableCommand

Complete specification for a leaf execution target containing operational hooks and terminal arguments.

Signature:

export interface ExecutableCommand extends BaseCommand

Extends: BaseCommand

Represents a definitive final command leaf that processes active inputs and performs application runtime operations.

Property

Modifiers

Type

Description

args?

ArgDefinition[]

(Optional) Collection of argument parameter bounds defining names, constraints, and custom completions.

commands?

never

(Optional) Disallowed property structure forcing mutual exclusivity with branch namespaces.

options?

OptionDefinition[]

(Optional) Collection of option flag definitions specifying available switches, expected value types, and descriptions for help documentation.

run

(args: string[], context: any, globals: any, options: Record<string, any>) => void | Promise<void>

Execution callback invoked when the parser completes traversal validation matching this definition. *