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
builder
ICommandBuilderThe ICommandBuilder.
Returns
- ICommandBuilder
The configured ICommandBuilder.
Type Parameters
TChecker
The 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
builder
ICommandBuilderThe ICommandBuilder.
key
stringThe custom property key.
value
objectThe 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
builder
ICommandBuilderThe ICommandBuilder.
order
intThe argument order.
id
stringThe argument id.
dataType
stringThe argument data type.
description
stringThe argument description.
flags
ArgumentFlagsThe 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
builder
ICommandBuilderThe ICommandBuilder.
id
stringThe option id.
dataType
stringThe option data type.
description
stringThe option description.
flags
OptionFlagsThe option flags.
alias
stringThe 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
builder
ICommandBuilderThe ICommandBuilder.
owners
OwnerIdCollectionThe 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
builder
ICommandBuilderThe ICommandBuilder.
tagIds
TagIdCollectionThe tag identifiers.
Returns
- ICommandBuilder
The configured ICommandBuilder.