UpdateCommandBuilder Class

Summary

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

Syntax

public sealed class UpdateCommandBuilder : ISupportArgumentBuilder<IHaveArgumentArchive>, 
    ISupportArgumentBuilder<IHaveArgumentFiles>, ISupportArgumentBuilder<IHaveArgumentDirectories>, 
    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<ISupportSwitchSelfExtractingArchive>, 
    ISupportSwitchBuilder<ISupportSwitchFullyQualifiedFilePaths>

Examples

Task("UpdateIt")
    .Does(() =>
{
    SevenZip(m => m
        .InUpdateMode()
        .WithArchive(File("path/to/file.zip"))
        .WithFiles(File("a.txt"))
        .WithFiles(File("b.txt")));
});

Extension Methods

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

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

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

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

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

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

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

See Also

GitHub Discussion