Interface ITerminalCommandSource<TContext>
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
TContextThe 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.