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

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Extension Methods

Name Value Summary
Dump<UpdateCommandBuilder>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<UpdateCommandBuilder>(UpdateCommandBuilder[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<UpdateCommandBuilder>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<UpdateCommandBuilder>(string) void
Requires the Cake.Issues addin
ThrowIfNull<UpdateCommandBuilder>(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<UpdateCommandBuilder>(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
Requires the Cake.Issues addin

See Also