Summary
Builder for
HashCommand
.
- Namespace
- Cake
.SevenZip .Builder - Interfaces
-
- I
Support Argument Builder <IHaveArgumentFiles> - I
Support Argument Builder <I Have >Argument Directories - I
Support Switch Builder <I Support >Switch Include Filenames - I
Support Switch Builder <I Support >Switch Exclude Filenames - I
Support Switch Builder <I Support >Switch Recurse Subdirectories - I
Support Switch Builder <I Support >Switch Compress Files Open For Writing - I
Support Switch Builder <I Support >Switch Compression Method - I
Support Switch Builder <I Support >Switch Ntfs Alternate Streams - I
Support Switch Builder <I Support >Switch Set Hash Function
- I
- Base Types
graph BT
Type-->Base0["BaseOutputBuilder<HashCommandBuilder, IHashOutput>"]
Base0-->Base1["object"]
Type-.->Interface0["ISupportArgumentBuilder<IHaveArgumentFiles>"]
Type-.->Interface1["ISupportArgumentBuilder<IHaveArgumentDirectories>"]
Type-.->Interface2["ISupportSwitchBuilder<ISupportSwitchIncludeFilenames>"]
Type-.->Interface3["ISupportSwitchBuilder<ISupportSwitchExcludeFilenames>"]
Type-.->Interface4["ISupportSwitchBuilder<ISupportSwitchRecurseSubdirectories>"]
Type-.->Interface5["ISupportSwitchBuilder<ISupportSwitchCompressFilesOpenForWriting>"]
Type-.->Interface6["ISupportSwitchBuilder<ISupportSwitchCompressionMethod>"]
Type-.->Interface7["ISupportSwitchBuilder<ISupportSwitchNtfsAlternateStreams>"]
Type-.->Interface8["ISupportSwitchBuilder<ISupportSwitchSetHashFunction>"]
Type["HashCommandBuilder"]
class Type type-node
Syntax
public sealed class HashCommandBuilder : BaseOutputBuilder<HashCommandBuilder, IHashOutput>,
ISupportArgumentBuilder<IHaveArgumentFiles>, ISupportArgumentBuilder<IHaveArgumentDirectories>,
ISupportSwitchBuilder<ISupportSwitchIncludeFilenames>,
ISupportSwitchBuilder<ISupportSwitchExcludeFilenames>,
ISupportSwitchBuilder<ISupportSwitchRecurseSubdirectories>,
ISupportSwitchBuilder<ISupportSwitchCompressFilesOpenForWriting>,
ISupportSwitchBuilder<ISupportSwitchCompressionMethod>,
ISupportSwitchBuilder<ISupportSwitchNtfsAlternateStreams>,
ISupportSwitchBuilder<ISupportSwitchSetHashFunction>
Examples
Task("GetHash")
.Does(() =>
{
SevenZip(m => m
.InHashMode()
.WithFiles(File("foo.txt"))
.WithHashFunction(SwitchSetHashFunction.Sha1)
.WithCommandOutput(o =>
{
Information("7Zip version is:" + o.Information);
var file = o.Files.Single(); // only one file was given above
var hash = file.Hashes.Single(); // only one hash-function was given above
Information($"{hash.HashFunction} of {file.FilePath} is: {hash.Hash}");
}));
});
Properties
Name | Value | Summary |
---|---|---|
OutputCommand | BaseOutputCommand |
Gets the output command.
|