BaseCommand Class

Summary

BaseClass for Commands.
graph BT Type-->Base0["Object"] Type["BaseCommand"] class Type type-node Derived0["ExtractCommand"]-->Type click Derived0 "/api/Cake.SevenZip.Commands/ExtractCommand" Derived1["BaseAddLikeSyntaxCommand"]-->Type click Derived1 "/api/Cake.SevenZip.Commands/BaseAddLikeSyntaxCommand" Derived2["BaseOutputCommand<T>"]-->Type click Derived2 "/api/Cake.SevenZip.Commands/BaseOutputCommand_1"

Syntax

public abstract class BaseCommand

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Name Summary
BaseCommand()

Properties

Name Value Summary
CommandChar string
Gets the command character. (e.g. "a", "u" or "e"...)
Switches IEnumerable<ISwitch>
Gets all supported switches.

Methods

Name Value Summary
BuildArgumentParams(ProcessArgumentBuilder) void
adds only the arguments to the builder. (i.e. Archive, files, directories).
BuildArguments(ProcessArgumentBuilder) void
Builds the arguments.

Extension Methods

Name Value Summary
Dump<BaseCommand>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<BaseCommand>(BaseCommand[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<BaseCommand>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<BaseCommand>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<BaseCommand>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<BaseCommand>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin