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
Builder for
ListCommand
.
- Assembly
- Cake
.7zip .dll - Namespace
- Cake
.SevenZip .Builder - Interfaces
-
- I
Support Argument Builder <IHaveArgumentArchive> - I
Support Switch Builder <I Support >Switch Include Archive Filenames - I
Support Switch Builder <I Support >Switch Disable Parsing Of Archive Name - I
Support Switch Builder <I Support >Switch Exclude Archive Filenames - I
Support Switch Builder <I Support >Switch Include Filenames - I
Support Switch Builder <I Support >Switch Ntfs Alternate Streams - I
Support Switch Builder <I Support >Switch Password - I
Support Switch Builder <I Support >Switch Recurse Subdirectories - I
Support Switch Builder <I Support >Switch Archive Type - I
Support Switch Builder <I Support >Switch Exclude Filenames - I
Support Switch Builder <I Support >Switch Show Technical Information
- I
- Base Types
graph BT
Type-->Base0["BaseOutputBuilder<ListCommandBuilder, IListOutput>"]
Base0-->Base1["Object"]
Type-.->Interface0["ISupportArgumentBuilder<IHaveArgumentArchive>"]
Type-.->Interface1["ISupportSwitchBuilder<ISupportSwitchIncludeArchiveFilenames>"]
Type-.->Interface2["ISupportSwitchBuilder<ISupportSwitchDisableParsingOfArchiveName>"]
Type-.->Interface3["ISupportSwitchBuilder<ISupportSwitchExcludeArchiveFilenames>"]
Type-.->Interface4["ISupportSwitchBuilder<ISupportSwitchIncludeFilenames>"]
Type-.->Interface5["ISupportSwitchBuilder<ISupportSwitchNtfsAlternateStreams>"]
Type-.->Interface6["ISupportSwitchBuilder<ISupportSwitchPassword>"]
Type-.->Interface7["ISupportSwitchBuilder<ISupportSwitchRecurseSubdirectories>"]
Type-.->Interface8["ISupportSwitchBuilder<ISupportSwitchArchiveType>"]
Type-.->Interface9["ISupportSwitchBuilder<ISupportSwitchExcludeFilenames>"]
Type-.->Interface10["ISupportSwitchBuilder<ISupportSwitchShowTechnicalInformation>"]
Type["ListCommandBuilder"]
class Type type-node
Syntax
public sealed class ListCommandBuilder : BaseOutputBuilder<ListCommandBuilder, IListOutput>,
ISupportArgumentBuilder<IHaveArgumentArchive>,
ISupportSwitchBuilder<ISupportSwitchIncludeArchiveFilenames>,
ISupportSwitchBuilder<ISupportSwitchDisableParsingOfArchiveName>,
ISupportSwitchBuilder<ISupportSwitchExcludeArchiveFilenames>,
ISupportSwitchBuilder<ISupportSwitchIncludeFilenames>,
ISupportSwitchBuilder<ISupportSwitchNtfsAlternateStreams>,
ISupportSwitchBuilder<ISupportSwitchPassword>,
ISupportSwitchBuilder<ISupportSwitchRecurseSubdirectories>,
ISupportSwitchBuilder<ISupportSwitchArchiveType>,
ISupportSwitchBuilder<ISupportSwitchExcludeFilenames>,
ISupportSwitchBuilder<ISupportSwitchShowTechnicalInformation>
Examples
Task("ListArchiveContent")
.Does(() =>
{
SevenZip(m => m
.InListMode()
.WithArchive(File("path/to/file.zip"))
.WithCommandOutput(o =>
{
Information("7Zip version is:" + o.Information);
var archive = o.Archives.Single(); // only one archive given above
foreach(var file in archive.Files)
{
Information($"{file.Name} has compressed size {file.CompressedSize} (of {file.Size})");
}
});
});
Attributes
Type | Description |
---|---|
Nullable |
|
NullableAttribute |
Properties
Name | Value | Summary |
---|---|---|
OutputCommand | BaseOutputCommand |
Gets the output command.
|
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
|