TerminiceComponentRunner extension

Shared execution helper for high-level Terminice components.

Covered components use this so terminal activation and fallback policy stay centralized on the Terminice instance instead of being reimplemented in every extension.

on

Methods

runComponent<T>(TerminiceComponent<T> component) → T

Available on Terminice, provided by the TerminiceComponentRunner extension

Activates this instance, captures the intended terminal, and runs component with a stable TerminiceComponentContext.
runWithComponent<T>(TerminiceComponentCallback<T> run) → T

Available on Terminice, provided by the TerminiceComponentRunner extension

Runs a custom component callback with a stable TerminiceComponentContext.
runWithFallback<T>({required T interactive(), required T fallback()}) → T

Available on Terminice, provided by the TerminiceComponentRunner extension

Activates this instance, then runs either interactive or fallback according to shouldUseFallback.