DeleteCommandBuilder Class

Summary

Builder for DeleteCommand.
graph BT Type-->Base0["object"] Type-.->Interface0["ISupportArgumentBuilder<IHaveArgumentArchive>"] Type-.->Interface1["ISupportArgumentBuilder<IHaveArgumentFiles>"] Type-.->Interface2["ISupportArgumentBuilder<IHaveArgumentDirectories>"] Type-.->Interface3["ISupportSwitchBuilder<ISupportSwitchIncludeFilenames>"] Type-.->Interface4["ISupportSwitchBuilder<ISupportSwitchExcludeFilenames>"] Type-.->Interface5["ISupportSwitchBuilder<ISupportSwitchCompressionMethod>"] Type-.->Interface6["ISupportSwitchBuilder<ISupportSwitchPassword>"] Type-.->Interface7["ISupportSwitchBuilder<ISupportSwitchRecurseSubdirectories>"] Type-.->Interface8["ISupportSwitchBuilder<ISupportSwitchNtfsAlternateStreams>"] Type-.->Interface9["ISupportSwitchBuilder<ISupportSwitchUpdateOptions>"] Type-.->Interface10["ISupportSwitchBuilder<ISupportSwitchWorkingDirectory>"] Type-.->Interface11["ISupportSwitchBuilder<ISupportSwitchSelfExtractingArchive>"] Type-.->Interface12["ISupportSwitchBuilder<ISupportSwitchFullyQualifiedFilePaths>"] Type["DeleteCommandBuilder"] class Type type-node

Syntax

public sealed class DeleteCommandBuilder : ISupportArgumentBuilder<IHaveArgumentArchive>, 
    ISupportArgumentBuilder<IHaveArgumentFiles>, ISupportArgumentBuilder<IHaveArgumentDirectories>, 
    ISupportSwitchBuilder<ISupportSwitchIncludeFilenames>, 
    ISupportSwitchBuilder<ISupportSwitchExcludeFilenames>, 
    ISupportSwitchBuilder<ISupportSwitchCompressionMethod>, 
    ISupportSwitchBuilder<ISupportSwitchPassword>, 
    ISupportSwitchBuilder<ISupportSwitchRecurseSubdirectories>, 
    ISupportSwitchBuilder<ISupportSwitchNtfsAlternateStreams>, 
    ISupportSwitchBuilder<ISupportSwitchUpdateOptions>, 
    ISupportSwitchBuilder<ISupportSwitchWorkingDirectory>, 
    ISupportSwitchBuilder<ISupportSwitchSelfExtractingArchive>, 
    ISupportSwitchBuilder<ISupportSwitchFullyQualifiedFilePaths>

Examples

Task("RemoveFiles")
    .Does(() =>
{
    SevenZip(m => m
      .InDeleteMode()
      .WithArchive(File("path/to/file.zip"))
      .WithFiles("*.pdf", "*.xps")
      .WithPassword("secure!"));
});

Extension Methods

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

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

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

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

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

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

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

See Also

GitHub Discussion