AddCommandBuilder Class

Summary

Builder for AddCommand.
graph BT Type-->Base0["object"] Type-.->Interface0["ISupportArgumentBuilder<IHaveArgumentArchive>"] Type-.->Interface1["ISupportArgumentBuilder<IHaveArgumentFiles>"] Type-.->Interface2["ISupportArgumentBuilder<IHaveArgumentDirectories>"] Type-.->Interface3["ISupportSwitchBuilder<ISupportSwitchVolume>"] Type-.->Interface4["ISupportSwitchBuilder<ISupportSwitchCompressionMethod>"] Type-.->Interface5["ISupportSwitchBuilder<ISupportSwitchArchiveType>"] Type-.->Interface6["ISupportSwitchBuilder<ISupportSwitchPassword>"] Type-.->Interface7["ISupportSwitchBuilder<ISupportSwitchNtSecurityInformation>"] Type-.->Interface8["ISupportSwitchBuilder<ISupportSwitchNtfsAlternateStreams>"] Type-.->Interface9["ISupportSwitchBuilder<ISupportSwitchCompressFilesOpenForWriting>"] Type-.->Interface10["ISupportSwitchBuilder<ISupportSwitchTimestampFromMostRecentFile>"] Type-.->Interface11["ISupportSwitchBuilder<ISupportSwitchWorkingDirectory>"] Type-.->Interface12["ISupportSwitchBuilder<ISupportSwitchRecurseSubdirectories>"] Type-.->Interface13["ISupportSwitchBuilder<ISupportSwitchIncludeFilenames>"] Type-.->Interface14["ISupportSwitchBuilder<ISupportSwitchExcludeFilenames>"] Type-.->Interface15["ISupportSwitchBuilder<ISupportSwitchUpdateOptions>"] Type-.->Interface16["ISupportSwitchBuilder<ISupportSwitchDeleteAfterCompression>"] Type-.->Interface17["ISupportSwitchBuilder<ISupportSwitchSelfExtractingArchive>"] Type-.->Interface18["ISupportSwitchBuilder<ISupportSwitchFullyQualifiedFilePaths>"] Type["AddCommandBuilder"] class Type type-node

Syntax

public sealed class AddCommandBuilder : ISupportArgumentBuilder<IHaveArgumentArchive>, 
    ISupportArgumentBuilder<IHaveArgumentFiles>, ISupportArgumentBuilder<IHaveArgumentDirectories>, 
    ISupportSwitchBuilder<ISupportSwitchVolume>, 
    ISupportSwitchBuilder<ISupportSwitchCompressionMethod>, 
    ISupportSwitchBuilder<ISupportSwitchArchiveType>, 
    ISupportSwitchBuilder<ISupportSwitchPassword>, 
    ISupportSwitchBuilder<ISupportSwitchNtSecurityInformation>, 
    ISupportSwitchBuilder<ISupportSwitchNtfsAlternateStreams>, 
    ISupportSwitchBuilder<ISupportSwitchCompressFilesOpenForWriting>, 
    ISupportSwitchBuilder<ISupportSwitchTimestampFromMostRecentFile>, 
    ISupportSwitchBuilder<ISupportSwitchWorkingDirectory>, 
    ISupportSwitchBuilder<ISupportSwitchRecurseSubdirectories>, 
    ISupportSwitchBuilder<ISupportSwitchIncludeFilenames>, 
    ISupportSwitchBuilder<ISupportSwitchExcludeFilenames>, 
    ISupportSwitchBuilder<ISupportSwitchUpdateOptions>, 
    ISupportSwitchBuilder<ISupportSwitchDeleteAfterCompression>, 
    ISupportSwitchBuilder<ISupportSwitchSelfExtractingArchive>, 
    ISupportSwitchBuilder<ISupportSwitchFullyQualifiedFilePaths>

Examples

Task("ZipIt")
    .Does(() =>
{
    SevenZip(m => m
        .InAddMode()
        .WithArchive(File("path/to/file.zip"))
        .WithFiles(File("a.txt"))
        .WithFiles(File("b.txt"))
        .WithVolume(1, VolumeUnit.Gigabytes));
});

Extension Methods

Name Value Summary
WithArchive<AddCommandBuilder>(FilePath) T
fluent setter for Archive.
WithArchiveType<AddCommandBuilder>(SwitchArchiveType) T
fluent setter for ISupportSwitchArchiveType.
WithCompressFilesOpenForWriting<AddCommandBuilder>() T
WithCompressionMethod<AddCommandBuilder>(Action<SwitchCompressionMethod>) T
fluent setter for ISupportSwitchCompressionMethod using an action.
WithCompressionMethodDictionarySize<AddCommandBuilder>(int) T
fluent setter for the method of ISupportSwitchCompressionMethod.
WithCompressionMethodLevel<AddCommandBuilder>(int) T
fluent setter for the method of ISupportSwitchCompressionMethod.
WithCompressionMethodMethod<AddCommandBuilder>(string) T
fluent setter for the method of ISupportSwitchCompressionMethod.
WithCompressionMethodSortFilesByType<AddCommandBuilder>(bool) T
fluent setter for the method of ISupportSwitchCompressionMethod.
WithDeleteAfterCompression<AddCommandBuilder>() T
WithDirectories<AddCommandBuilder>(DirectoryPathCollection) T
See Cake.SevenZip.Builder.ArgumentDirectoriesBuilder.WithDirectories``1(``0,DirectoryPath[]).
WithDirectories<AddCommandBuilder>(DirectoryPath[]) T
fluent setter for Directories.

See the comments on Files, Directories and DirectoryContents regarding files and directory structures.

WithDirectoryContents<AddCommandBuilder>(DirectoryPathCollection) T
See Cake.SevenZip.Builder.ArgumentDirectoriesBuilder.WithDirectoryContents``1(``0,DirectoryPath[]).
WithDirectoryContents<AddCommandBuilder>(DirectoryPath[]) T
fluent setter for DirectoryContents.

See the comments on Files, Directories and DirectoryContents regarding files and directory structures.

WithExcludeFilenames<AddCommandBuilder>(RecurseType, string, string[]) T
fluent setter for ISupportSwitchExcludeFilenames.
WithExcludeFilenames<AddCommandBuilder>(string, string[]) T
fluent setter for ISupportSwitchExcludeFilenames.
WithFiles<AddCommandBuilder>(FilePathCollection) T
See Cake.SevenZip.Builder.ArgumentFilesBuilder.WithFiles``1(``0,FilePath[]).
WithFiles<AddCommandBuilder>(FilePath[]) T
fluent setter for Files.

See the comments on Files, Directories and DirectoryContents regarding files and directory structures.

WithFullyQualifiedFilePaths<AddCommandBuilder>(bool) T
fluent setter for FullyQualifiedFilePaths.
WithIncludeFilenames<AddCommandBuilder>(RecurseType, string, string[]) T
fluent setter for ISupportSwitchIncludeFilenames.
WithIncludeFilenames<AddCommandBuilder>(string, string[]) T
fluent setter for ISupportSwitchIncludeFilenames.
WithNtSecurityInformation<AddCommandBuilder>() T
WithNtfsAlternateStreams<AddCommandBuilder>() T
WithPassword<AddCommandBuilder>(string) T
fluent setter for ISupportSwitchPassword.
WithRecurseSubdirectories<AddCommandBuilder>(RecurseType) T
WithSelfExtractingArchive<AddCommandBuilder>(FilePath?) T
fluent setter for SelfExtractingArchive.
WithSetTimestampFromMostRecentFile<AddCommandBuilder>() T
WithUpdateOptions<AddCommandBuilder>(Action<SwitchUpdateOptions>) T
fluent setter for ISupportSwitchUpdateOptions.
WithVolume<AddCommandBuilder>(int, VolumeUnit?) T
fluent setter for ISupportSwitchVolume.
WithWorkingDirectory<AddCommandBuilder>(DirectoryPath) T
fluent setter for ISupportSwitchWorkingDirectory.

See Also

GitHub Discussion