Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Targets with enumerable inputs #36

Merged
merged 3 commits into from
Jun 30, 2018
Merged

Targets with enumerable inputs #36

merged 3 commits into from
Jun 30, 2018

Conversation

adamralph
Copy link
Owner

@adamralph adamralph commented Jun 30, 2018

Target(
    "echo",
    ForEach(1, 2, 3),
    number => Console.Out.WriteLineAsync(number.ToString()));

image

var foos = new[] { "a", "b" };
var bars = new[] { 1, 2 };

Target(
    "combo",
    foos.SelectMany(foo => bars.Select(bar => new { foo, bar })),
    o => Console.Out.WriteLineAsync($"{o.foo},{o.bar}"));

image

@adamralph adamralph added the enhancement New feature or request label Jun 30, 2018
@adamralph adamralph added this to the 1.1.0 milestone Jun 30, 2018
@adamralph adamralph merged commit e4b6d5a into master Jun 30, 2018
@adamralph adamralph deleted the for-each branch June 30, 2018 10:08
@adamralph adamralph changed the title Support targets with enumerable inputs Targets with enumerable inputs Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant