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")));
});

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Methods

Extension Methods

Name Value Summary
Dump<RenameCommandBuilder>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<RenameCommandBuilder>(RenameCommandBuilder[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<RenameCommandBuilder>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<RenameCommandBuilder>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<RenameCommandBuilder>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<RenameCommandBuilder>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin

See Also