Skip to content

Commit bb9963f

Browse files
author
Nathan Hartley
committed
Added _Task with the task name to the configuration available to tasks.
1 parent 487047a commit bb9963f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Invoke-Task.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<#
22
.SYNOPSIS
3-
Runs commands in .\Tasks\[TASK]\Init[INSTANCE] with the environment configured and output logging.
3+
Runs commands in .\Tasks\[TASK]\Init-[INSTANCE] with the environment configured and output logging.
44
#>
55
param (
66
[string]$Task,
@@ -18,6 +18,7 @@ if ($Config['TranscriptEnabled'] -eq $true) {
1818
New-Item -Path $Config['LogDirectory'] -ItemType Directory | Out-Null
1919
}
2020

21+
$Config['_Task'] = $Task
2122
$Config['TaskTranscriptFile'] = $Config['TranscriptFileTemplate'] -f $Config['LogDirectory'], (Get-Date), $Task, $Instance
2223

2324
# If one already exists, start with a clean transcript file.

0 commit comments

Comments
 (0)