GenericBuildahRunner<TSettings>.

RunWithResult<T>(string, TSettings, Func<IEnumerable<string>, T[]>, string[]) Method

Summary

Runs a command and returns a result based on processed output.
Assembly
Cake.Buildah.dll
Namespace
Cake.Buildah
Containing Type
GenericBuildahRunner<TSettings>

Syntax

public T[] RunWithResult<T>(string command, TSettings settings, Func<IEnumerable<string>, T[]> processOutput, params string[] arguments)

Type Parameters

Name Description
T The type of the results.

Parameters

Name Type Description
command string the command to run.
settings TSettings The settings.
processOutput Func<IEnumerable<string>, T[]> the output returned from the execution.
arguments string[] extra arguments.

Return Value

Type Description
T[] an Array of T.