Nuke.Cola
Loading...
Searching...
No Matches
Nuke.Cola.FolderComposition.FileOrDirectory Class Reference

A union provided for denoting wether we want to link/copy a file or a directory. It is undefined behavior when both File and Directory is set to non-null value. More...

Inheritance diagram for Nuke.Cola.FolderComposition.FileOrDirectory:

Public Member Functions

FileOrDirectory Clone ()
 

Public Attributes

string? File
 Export a single or a glob of files handled individually. Either File or Directory (dir) must be specified.
 
string? Directory
 Export one or a glob of directories handled recursively. Files inside target directories are not considered. Either File or Directory (dir) must be specified.
 
List< string > Not = []
 Exclude iterms from this particular set of files or directories if they match any of these patterns.
 
string? As
 Override the destination relative path of exported item.
 
bool ProcessContent = false
 When working with a file, process its contents for replacing specified suffixes.
 
string? ManifestFilePattern
 Only used by "use", if a subfolder uses a different file for export manifest, specify that via this glob. Default is "export.y*ml" or whatever else has been specified for this import session.
 

Package Functions

AbsolutePath? GetDestination (AbsolutePath srcRoot, AbsolutePath dstRoot, AbsolutePath currentPath, int itemId, IEnumerable< string > exclude)
 

Private Member Functions

object ICloneable. Clone ()
 

Detailed Description

A union provided for denoting wether we want to link/copy a file or a directory. It is undefined behavior when both File and Directory is set to non-null value.

Addtitionally specify some options about the method of exporting given item.

Definition at line 22 of file ExportManifest.cs.

Member Function Documentation

◆ Clone() [1/2]

FileOrDirectory Nuke.Cola.FolderComposition.FileOrDirectory.Clone ( )

Definition at line 104 of file ExportManifest.cs.

◆ Clone() [2/2]

object ICloneable. Nuke.Cola.FolderComposition.FileOrDirectory.Clone ( )
private

Definition at line 117 of file ExportManifest.cs.

◆ GetDestination()

AbsolutePath? Nuke.Cola.FolderComposition.FileOrDirectory.GetDestination ( AbsolutePath srcRoot,
AbsolutePath dstRoot,
AbsolutePath currentPath,
int itemId,
IEnumerable< string > exclude )
package

Definition at line 69 of file ExportManifest.cs.

Member Data Documentation

◆ As

string? Nuke.Cola.FolderComposition.FileOrDirectory.As

Override the destination relative path of exported item.

Use $N syntax (where N is 1..(number of * or **)) to reuse those captured segments of the globbing.

Use $# syntax to get the 0 based ID of globbed item.

Definition at line 53 of file ExportManifest.cs.

◆ Directory

string? Nuke.Cola.FolderComposition.FileOrDirectory.Directory

Export one or a glob of directories handled recursively. Files inside target directories are not considered. Either File or Directory (dir) must be specified.

Definition at line 36 of file ExportManifest.cs.

◆ File

string? Nuke.Cola.FolderComposition.FileOrDirectory.File

Export a single or a glob of files handled individually. Either File or Directory (dir) must be specified.

Definition at line 29 of file ExportManifest.cs.

◆ ManifestFilePattern

string? Nuke.Cola.FolderComposition.FileOrDirectory.ManifestFilePattern

Only used by "use", if a subfolder uses a different file for export manifest, specify that via this glob. Default is "export.y*ml" or whatever else has been specified for this import session.

Definition at line 67 of file ExportManifest.cs.

◆ Not

List<string> Nuke.Cola.FolderComposition.FileOrDirectory.Not = []

Exclude iterms from this particular set of files or directories if they match any of these patterns.

Definition at line 42 of file ExportManifest.cs.

◆ ProcessContent

bool Nuke.Cola.FolderComposition.FileOrDirectory.ProcessContent = false

When working with a file, process its contents for replacing specified suffixes.

Definition at line 59 of file ExportManifest.cs.


The documentation for this class was generated from the following file: