Table of Contents

Interface ITerminalCommandSource<TContext>

Namespace
OneImlx.Terminal.Dynamics
Assembly
OneImlx.Terminal.dll

An abstraction of a terminal command source.

public interface ITerminalCommandSource<TContext> where TContext : class

Type Parameters

TContext

Remarks

A command source is a provider of terminal commands. It can be a local or remote source.

Methods

LoadCommandSourceAsync(TContext)

Loads the terminal command source asynchronously.

Task LoadCommandSourceAsync(TContext context)

Parameters

context TContext

The terminal source context.

Returns

Task

This interface allows for different sources of terminal commands, either from local or remote origins. It supports customization via the TContext parameter, which can be tailored to specific loading contexts (e.g., configurations, authentication). Implementers can define how commands are loaded, catering to various application needs.