RenameCommandBuilder Class

Summary

Builder for RenameCommand.
graph BT Type-->Base0["object"] Type-.->Interface0["ISupportArgumentBuilder<IHaveArgumentArchive>"] Type-.->Interface1["ISupportSwitchBuilder<ISupportSwitchIncludeFilenames>"] Type-.->Interface2["ISupportSwitchBuilder<ISupportSwitchCompressionMethod>"] Type-.->Interface3["ISupportSwitchBuilder<ISupportSwitchPassword>"] Type-.->Interface4["ISupportSwitchBuilder<ISupportSwitchRecurseSubdirectories>"] Type-.->Interface5["ISupportSwitchBuilder<ISupportSwitchTimestampFromMostRecentFile>"] Type-.->Interface6["ISupportSwitchBuilder<ISupportSwitchUpdateOptions>"] Type-.->Interface7["ISupportSwitchBuilder<ISupportSwitchWorkingDirectory>"] Type-.->Interface8["ISupportSwitchBuilder<ISupportSwitchExcludeFilenames>"] Type["RenameCommandBuilder"] class Type type-node

Syntax

public sealed class RenameCommandBuilder : ISupportArgumentBuilder<IHaveArgumentArchive>, 
    ISupportSwitchBuilder<ISupportSwitchIncludeFilenames>, 
    ISupportSwitchBuilder<ISupportSwitchCompressionMethod>, 
    ISupportSwitchBuilder<ISupportSwitchPassword>, 
    ISupportSwitchBuilder<ISupportSwitchRecurseSubdirectories>, 
    ISupportSwitchBuilder<ISupportSwitchTimestampFromMostRecentFile>, 
    ISupportSwitchBuilder<ISupportSwitchUpdateOptions>, 
    ISupportSwitchBuilder<ISupportSwitchWorkingDirectory>, 
    ISupportSwitchBuilder<ISupportSwitchExcludeFilenames>

Examples

Task("RenameArchiveContent")
    .Does(() =>
{
    SevenZip(m => m
        .InRenameMode()
        .WithArchive(File("path/to/file.zip"))
        .WithRenameFile(File("old.txt"), File("new.txt")));
});

Methods

Extension Methods

Name Value Summary
WithArchive<RenameCommandBuilder>(FilePath) T
fluent setter for Archive.
WithCompressionMethod<RenameCommandBuilder>(Action<SwitchCompressionMethod>) T
fluent setter for ISupportSwitchCompressionMethod using an action.
WithCompressionMethodDictionarySize<RenameCommandBuilder>(int) T
fluent setter for the method of ISupportSwitchCompressionMethod.
WithCompressionMethodLevel<RenameCommandBuilder>(int) T
fluent setter for the method of ISupportSwitchCompressionMethod.
WithCompressionMethodMethod<RenameCommandBuilder>(string) T
fluent setter for the method of ISupportSwitchCompressionMethod.
WithCompressionMethodSortFilesByType<RenameCommandBuilder>(bool) T
fluent setter for the method of ISupportSwitchCompressionMethod.
WithExcludeFilenames<RenameCommandBuilder>(RecurseType, string, string[]) T
fluent setter for ISupportSwitchExcludeFilenames.
WithExcludeFilenames<RenameCommandBuilder>(string, string[]) T
fluent setter for ISupportSwitchExcludeFilenames.
WithIncludeFilenames<RenameCommandBuilder>(RecurseType, string, string[]) T
fluent setter for ISupportSwitchIncludeFilenames.
WithIncludeFilenames<RenameCommandBuilder>(string, string[]) T
fluent setter for ISupportSwitchIncludeFilenames.
WithPassword<RenameCommandBuilder>(string) T
fluent setter for ISupportSwitchPassword.
WithRecurseSubdirectories<RenameCommandBuilder>(RecurseType) T
WithSetTimestampFromMostRecentFile<RenameCommandBuilder>() T
WithUpdateOptions<RenameCommandBuilder>(Action<SwitchUpdateOptions>) T
fluent setter for ISupportSwitchUpdateOptions.
WithWorkingDirectory<RenameCommandBuilder>(DirectoryPath) T
fluent setter for ISupportSwitchWorkingDirectory.

See Also

GitHub Discussion