Extension methods for Command and CommandContainer.
public static class CommandExtensions
kind:method, kind:property, kind:ctor. Press Esc to clear.Add<TCommand>(TCommand, Func<String[], ValueTask<Int32>>)Sets an action attached to the specified command.Add<TCommand>(TCommand, Func<CommandRunContext, String[], ValueTask<Int32>>)Sets an action attached to the specified command.Add<TCommand>(TCommand, String, Action<String, String?>)Adds to this command container an option which expect a pair of string value.Add<TCommand>(TCommand, String, Action<String?>)Adds an option to this command container.Add<TCommand>(TCommand, String, String?, Action<String, String?>, Boolean)Adds to this command container an option which expect a pair of string value.Add<TCommand>(TCommand, String, String?, Action<String, String?>)Adds to this command container an option which expect a pair of string value.Add<TCommand>(TCommand, String, String?, Action<String?>, Boolean)Adds an option to this command container.Add<TCommand>(TCommand, String, String?, Action<String?>, String, Nullable<Char>, Boolean)Adds an option to this command container with an environment variable fallback.Add<TCommand>(TCommand, String, String?, Action<String?>, OptionValidator<String>?, String?, Nullable<Char>, Boolean)Adds an option or argument with validation.Add<TCommand>(TCommand, String, String?, Action<String?>)Adds an option to this command container.Add<TCommand>(TCommand, String, String?)Adds the remainder positional argument (<>) to this command container. All remaining arguments are passed unprocessed to the command action.Add<TCommand>(TCommand, String)Adds a text to the command.Add<TCommand>(TCommand, ArgumentSource)Adds the specified argument source to this command container.Add<TCommand>(TCommand, Option)Adds an option to this command container.Add<TCommand, T>(TCommand, String, Action<T>)Adds to this command container an option which expect a specified type for its value.Add<TCommand, T>(TCommand, String, ICollection<T>)Adds to this command container an option which expects a specified type and will add the value to the specified list.Add<TCommand, T>(TCommand, String, String?, Action<T>, Boolean)Adds to this command container an option which expects a specified type for its value.Add<TCommand, T>(TCommand, String, String?, Action<T>, String, Nullable<Char>, Boolean)Adds an option which expects a specified type for its value with an environment variable fallback.Add<TCommand, T>(TCommand, String, String?, Action<T>, String, Nullable<Char>)Adds an option which expects a specified type for its value with an environment variable fallback.Add<TCommand, T>(TCommand, String, String?, Action<T>, OptionValidator<T>?, Boolean, String?, Nullable<Char>)Adds an option or argument with validation for typed values.Add<TCommand, T>(TCommand, String, String?, Action<T>, OptionValidator<T>?, String?, Nullable<Char>)Adds an option or argument with validation for typed values.Add<TCommand, T>(TCommand, String, String?, Action<T>)Adds to this command container an option which expect a specified type for its value.Add<TCommand, T>(TCommand, String, String?, ICollection<T>, Boolean)Adds to this command container an option which expects a specified type and will add the value to the specified list.Add<TCommand, T>(TCommand, String, String?, ICollection<T>, String, Nullable<Char>, Boolean)Adds an option which expects a specified type and appends parsed values to the specified list, with an environment variable fallback.Add<TCommand, T>(TCommand, String, String?, ICollection<T>, String, Nullable<Char>)Adds an option which expects a specified type and appends parsed values to the specified list, with an environment variable fallback.Add<TCommand, T>(TCommand, String, String?, ICollection<T>, OptionValidator<T>?, Boolean, String?, Nullable<Char>)Adds an option or argument that appends values to a list with optional validation.Add<TCommand, T>(TCommand, String, String?, ICollection<T>, OptionValidator<T>?, String?, Nullable<Char>)Adds an option or argument that appends values to a list with optional validation.Add<TCommand, T>(TCommand, String, String?, ICollection<T>)Adds to this command container an option which expects a specified type and will add the value to the specified list.Add<TCommand, TKey, TValue>(TCommand, String, Action<TKey, TValue>)Adds to this command container an option which expect a pair of key/value.Add<TCommand, TKey, TValue>(TCommand, String, String?, Action<TKey, TValue>)Adds to this command container an option which expect a pair of key/value.AddMutuallyExclusive<TCommand>(TCommand, String[])Declares that the specified options cannot be used together.AddRemainder<TCommand>(TCommand, String?)Adds a remainder positional argument (<>) to this command container. All remaining arguments are forwarded to the command action callback.AddRequires<TCommand>(TCommand, String, String[])Declares that when optionName is present, all requiredOptionNames must also be present.AddSection<TCommand>(TCommand, String)Adds a section header line to the command help.AddText<TCommand>(TCommand, String)Adds a plain text line to the command.