ICommand Interface

Summary

Interface for all commands. (E.g. AddCommand).
graph BT Type["ICommand"] class Type type-node Implementing0["ListCommand"]-.->Type click Implementing0 "/api/Cake.SevenZip.Commands/ListCommand" Implementing1["TestCommand"]-.->Type click Implementing1 "/api/Cake.SevenZip.Commands/TestCommand" Implementing2["RenameCommand"]-.->Type click Implementing2 "/api/Cake.SevenZip.Commands/RenameCommand" Implementing3["ExtractCommand"]-.->Type click Implementing3 "/api/Cake.SevenZip.Commands/ExtractCommand" Implementing4["BaseOutputCommand<T>"]-.->Type click Implementing4 "/api/Cake.SevenZip.Commands/BaseOutputCommand_1" Implementing5["BenchmarkCommand"]-.->Type click Implementing5 "/api/Cake.SevenZip.Commands/BenchmarkCommand" Implementing6["HashCommand"]-.->Type click Implementing6 "/api/Cake.SevenZip.Commands/HashCommand" Implementing7["InformationCommand"]-.->Type click Implementing7 "/api/Cake.SevenZip.Commands/InformationCommand" Implementing8["DeleteCommand"]-.->Type click Implementing8 "/api/Cake.SevenZip.Commands/DeleteCommand" Implementing9["AddCommand"]-.->Type click Implementing9 "/api/Cake.SevenZip.Commands/AddCommand" Implementing10["UpdateCommand"]-.->Type click Implementing10 "/api/Cake.SevenZip.Commands/UpdateCommand"

Syntax

public interface ICommand

Attributes

Type Description
NullableContextAttribute

Methods

Name Value Summary
BuildArguments(ProcessArgumentBuilder) void
Builds the arguments. Used internally.

Extension Methods

Name Value Summary
Dump<ICommand>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<ICommand>(ICommand[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<ICommand>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<ICommand>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<ICommand>(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<ICommand>(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