Class ICommandBuilderExtensions
- Namespace
- OneImlx.Terminal.Extensions
- Assembly
- OneImlx.Terminal.dll
The ICommandBuilder extension methods.
public static class ICommandBuilderExtensions
- Inheritance
-
ICommandBuilderExtensions
- Inherited Members
Methods
Checker<TChecker>(ICommandBuilder)
Updates the checker for the registered command descriptor.
public static ICommandBuilder Checker<TChecker>(this ICommandBuilder builder) where TChecker : ICommandChecker
Parameters
builderICommandBuilderThe ICommandBuilder.
Returns
- ICommandBuilder
The configured ICommandBuilder.
Type Parameters
TCheckerThe checker type.
CustomProperty(ICommandBuilder, string, object)
Adds a command custom property to the ICommandBuilder.
public static ICommandBuilder CustomProperty(this ICommandBuilder builder, string key, object value)
Parameters
builderICommandBuilderThe ICommandBuilder.
keystringThe custom property key.
valueobjectThe custom property value.
Returns
- ICommandBuilder
The configured ICommandBuilder.
DefineArgument(ICommandBuilder, int, string, string, string, ArgumentFlags)
Starts a new IArgumentBuilder definition.
public static IArgumentBuilder DefineArgument(this ICommandBuilder builder, int order, string id, string dataType, string description, ArgumentFlags flags)
Parameters
builderICommandBuilderThe ICommandBuilder.
orderintThe argument order.
idstringThe argument id.
dataTypestringThe argument data type.
descriptionstringThe argument description.
flagsArgumentFlagsThe argument flags.
Returns
- IArgumentBuilder
The configured IArgumentBuilder.
DefineOption(ICommandBuilder, string, string, string, OptionFlags, string?)
Starts a new IOptionBuilder definition.
public static IOptionBuilder DefineOption(this ICommandBuilder builder, string id, string dataType, string description, OptionFlags flags, string? alias = null)
Parameters
builderICommandBuilderThe ICommandBuilder.
idstringThe option id.
dataTypestringThe option data type.
descriptionstringThe option description.
flagsOptionFlagsThe option flags.
aliasstringThe option alias.
Returns
- IOptionBuilder
The configured IOptionBuilder.
Owners(ICommandBuilder, OwnerIdCollection)
Adds a command owners to the ICommandBuilder.
public static ICommandBuilder Owners(this ICommandBuilder builder, OwnerIdCollection owners)
Parameters
builderICommandBuilderThe ICommandBuilder.
ownersOwnerIdCollectionThe owner identifiers.
Returns
- ICommandBuilder
The configured ICommandBuilder.
Tags(ICommandBuilder, TagIdCollection)
Adds command tags to the ICommandBuilder.
public static ICommandBuilder Tags(this ICommandBuilder builder, TagIdCollection tagIds)
Parameters
builderICommandBuilderThe ICommandBuilder.
tagIdsTagIdCollectionThe tag identifiers.
Returns
- ICommandBuilder
The configured ICommandBuilder.