This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.7zip.
Summary
Test one or more archives
(Command: t).
The builder is TestCommandBuilder
.
- Assembly
- Cake
.7zip .dll - Namespace
- Cake
.SevenZip .Commands - Interfaces
-
- ICommand
- ICanParseOutput
- IHaveArgumentArchive
- IHaveArgumentFiles
- IHaveArgument
- I
Support Switch Include Archive Filenames - I
Support Switch Exclude Archive Filenames - I
Support Switch Disable Parsing Of Archive Name - I
Support Switch Include Filenames - I
Support Switch Exclude Filenames - I
Support Switch Password - I
Support Switch Ntfs Alternate Streams - I
Support Switch Recurse Subdirectories - ISupportSwitch
- Base Types
-
- Object
- BaseCommand
- BaseOutputCommand
<ITestOutput>
graph BT
Type-->Base0["BaseOutputCommand<ITestOutput>"]
Base0-->Base1["BaseCommand"]
click Base1 "/api/Cake.SevenZip.Commands/BaseCommand"
Base1-->Base2["Object"]
Type-.->Interface0["ICommand"]
click Interface0 "/api/Cake.SevenZip.Commands/ICommand"
Type-.->Interface1["ICanParseOutput"]
Type-.->Interface2["IHaveArgumentArchive"]
click Interface2 "/api/Cake.SevenZip.Arguments/IHaveArgumentArchive"
Type-.->Interface3["IHaveArgumentFiles"]
click Interface3 "/api/Cake.SevenZip.Arguments/IHaveArgumentFiles"
Type-.->Interface4["IHaveArgument"]
click Interface4 "/api/Cake.SevenZip.Arguments/IHaveArgument"
Type-.->Interface5["ISupportSwitchIncludeArchiveFilenames"]
click Interface5 "/api/Cake.SevenZip.Switches/ISupportSwitchIncludeArchiveFilenames"
Type-.->Interface6["ISupportSwitchExcludeArchiveFilenames"]
click Interface6 "/api/Cake.SevenZip.Switches/ISupportSwitchExcludeArchiveFilenames"
Type-.->Interface7["ISupportSwitchDisableParsingOfArchiveName"]
click Interface7 "/api/Cake.SevenZip.Switches/ISupportSwitchDisableParsingOfArchiveName"
Type-.->Interface8["ISupportSwitchIncludeFilenames"]
click Interface8 "/api/Cake.SevenZip.Switches/ISupportSwitchIncludeFilenames"
Type-.->Interface9["ISupportSwitchExcludeFilenames"]
click Interface9 "/api/Cake.SevenZip.Switches/ISupportSwitchExcludeFilenames"
Type-.->Interface10["ISupportSwitchPassword"]
click Interface10 "/api/Cake.SevenZip.Switches/ISupportSwitchPassword"
Type-.->Interface11["ISupportSwitchNtfsAlternateStreams"]
click Interface11 "/api/Cake.SevenZip.Switches/ISupportSwitchNtfsAlternateStreams"
Type-.->Interface12["ISupportSwitchRecurseSubdirectories"]
click Interface12 "/api/Cake.SevenZip.Switches/ISupportSwitchRecurseSubdirectories"
Type-.->Interface13["ISupportSwitch"]
click Interface13 "/api/Cake.SevenZip.Switches/ISupportSwitch"
Type["TestCommand"]
class Type type-node
Syntax
public sealed class TestCommand : BaseOutputCommand<ITestOutput>, ICommand, ICanParseOutput,
IHaveArgumentArchive, IHaveArgumentFiles, IHaveArgument, ISupportSwitchIncludeArchiveFilenames,
ISupportSwitchExcludeArchiveFilenames, ISupportSwitchDisableParsingOfArchiveName,
ISupportSwitchIncludeFilenames, ISupportSwitchExcludeFilenames, ISupportSwitchPassword,
ISupportSwitchNtfsAlternateStreams, ISupportSwitchRecurseSubdirectories, ISupportSwitch
Attributes
Type | Description |
---|---|
Nullable |
|
NullableAttribute |
Constructors
Name | Summary |
---|---|
TestCommand |
Initializes a new instance of the TestCommand class.
|
Properties
Name | Value | Summary |
---|---|---|
Archive | FilePath |
Sets the archive the command operates on.
|
CommandChar | string |
Gets the command character. (e.g. "a", "u" or "e"...)
|
Disable |
Switch |
Gets or sets the SwitchDisableParsingOfArchiveName.
|
Exclude |
Switch |
Gets or sets the SwitchExcludeArchiveFilenameCollection.
|
ExcludeFilenames | Switch |
Gets or sets the SwitchExcludeFilenameCollection.
|
Files | FilePathCollection |
Gets or sets the list of files this command operates on.
These are single files. (I.e. to add to, or to remove from the archive).
For add and update, single files from the file-system will always be placed directly into the archive without any directory-structure. Setting Files like this in add/update:
Will result in an archive:
without any directory structure.
|
Include |
Switch |
Gets or sets the SwitchIncludeArchiveFilenameCollection.
|
IncludeFilenames | Switch |
Gets or sets the SwitchIncludeFilenameCollection.
|
NtfsAlternateStreams | Switch |
Gets or sets the SwitchNtfsAlternateStreams.
|
Password | SwitchPassword |
Gets or sets the SwitchPassword.
|
Recurse |
Switch |
Gets or sets the SwitchRecurseSubdirectories.
|
Switches | IEnumerable |
Gets all supported switches.
|
Methods
Name | Value | Summary |
---|---|---|
BuildArgumentParams |
void |
adds only the arguments to the builder. (i.e. Archive, files, directories).
|
BuildArguments |
void |
Builds the arguments.
Inherited from BaseCommand
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|