stormlog.tui.commands

Asynchronous CLI command runner for the Textual TUI.

Classes

CLICommandRunner()

Runs shell commands asynchronously while streaming output.

class stormlog.tui.commands.CLICommandRunner[source]

Bases: object

Runs shell commands asynchronously while streaming output.

property is_running: bool
async run(command, callback)[source]

Run a command and stream stdout/stderr via callback.

Parameters:
  • command (str)

  • callback (Callable[[str, str], Awaitable[None]])

Return type:

int

async cancel()[source]

Attempt to terminate the running command.

Return type:

bool