BaseCommand Class

Summary

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

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.Ftp addin
NotNull<BaseCommand>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues 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