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["BaseOutputCommand<T>"]-->Type click Derived1 "/api/Cake.SevenZip.Commands/BaseOutputCommand_1" Derived2["BaseAddLikeSyntaxCommand"]-->Type click Derived2 "/api/Cake.SevenZip.Commands/BaseAddLikeSyntaxCommand"

Syntax

public abstract class BaseCommand

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) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator 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