Nuke.Unreal
Build Unreal apps in Style.
Loading...
Searching...
No Matches
Nuke.Unreal.Tools.ToolConfigExtensions Class Reference

Static Public Member Functions

static T If< T > (this T config, bool condition, Action< T >? @true=null, Action< T >? @false=null)
 Convenience function for conditionally configuring a tool.
 
static T For< T, I > (this T config, IEnumerable< I > collection, Action< I, T > body)
 Convenience function to apply potentially stacking command line arguments for each element in an enumerable.
 
static T Append< T > (this T config, params string[] arguments)
 Append arbitrary arguments to target configurator. Arguments will be parsed for (NAME)[=:]?(VALUE)? structure, and quoted if necessary.
 
static T Append< T > (this T config, IEnumerable< string?> arguments)
 Append arbitrary arguments to target configurator. Arguments will be parsed for (NAME)[=:]?(VALUE)? structure, and quoted if necessary.
 
static T AppendRaw< T > (this T config, params string[] arguments)
 Append arbitrary arguments to target configurator. Arguments will be passed as is.
 
static T AppendRaw< T > (this T config, IEnumerable< string > arguments)
 Append arbitrary arguments to target configurator. Arguments will be passed as is.
 

Detailed Description

Definition at line 106 of file ToolConfig.cs.

Member Function Documentation

◆ Append< T >() [1/2]

static T Nuke.Unreal.Tools.ToolConfigExtensions.Append< T > ( this T config,
IEnumerable< string?> arguments )
static

Append arbitrary arguments to target configurator. Arguments will be parsed for (NAME)[=:]?(VALUE)? structure, and quoted if necessary.

Parameters
config
arguments
Template Parameters
T
Returns
The same configurator as the input one
Type Constraints
T :ToolConfig 

Definition at line 161 of file ToolConfig.cs.

◆ Append< T >() [2/2]

static T Nuke.Unreal.Tools.ToolConfigExtensions.Append< T > ( this T config,
params string[] arguments )
static

Append arbitrary arguments to target configurator. Arguments will be parsed for (NAME)[=:]?(VALUE)? structure, and quoted if necessary.

Parameters
config
arguments
Template Parameters
T
Returns
The same configurator as the input one
Type Constraints
T :ToolConfig 

◆ AppendRaw< T >() [1/2]

static T Nuke.Unreal.Tools.ToolConfigExtensions.AppendRaw< T > ( this T config,
IEnumerable< string > arguments )
static

Append arbitrary arguments to target configurator. Arguments will be passed as is.

Parameters
config
arguments
Template Parameters
T
Returns
The same configurator as the input one
Type Constraints
T :ToolConfig 

Definition at line 190 of file ToolConfig.cs.

◆ AppendRaw< T >() [2/2]

static T Nuke.Unreal.Tools.ToolConfigExtensions.AppendRaw< T > ( this T config,
params string[] arguments )
static

Append arbitrary arguments to target configurator. Arguments will be passed as is.

Parameters
config
arguments
Template Parameters
T
Returns
The same configurator as the input one
Type Constraints
T :ToolConfig 

◆ For< T, I >()

static T Nuke.Unreal.Tools.ToolConfigExtensions.For< T, I > ( this T config,
IEnumerable< I > collection,
Action< I, T > body )
static

Convenience function to apply potentially stacking command line arguments for each element in an enumerable.

Parameters
config
collection
bodyExecute delegate for each item of collection
Template Parameters
T
I
Returns
The same configurator as the input one
Type Constraints
T :ToolConfig 

Definition at line 133 of file ToolConfig.cs.

◆ If< T >()

static T Nuke.Unreal.Tools.ToolConfigExtensions.If< T > ( this T config,
bool condition,
Action< T >? @ true = null,
Action< T >? @ false = null )
static

Convenience function for conditionally configuring a tool.

Parameters
config
condition
trueExecute delegate when condition is true
falseExecute delegate when condition is false
Template Parameters
T
Returns
The same configurator as the input one
Type Constraints
T :ToolConfig 

Definition at line 117 of file ToolConfig.cs.


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