Permalink
Browse files

Updated the Write-Documentation to display a list of tasks the task d…

…epends on
  • Loading branch information...
1 parent 64ea235 commit 286d2a58b84c7869a63f40cc63a7fc924855106c @staxmanade staxmanade committed Apr 29, 2010
Showing with 6 additions and 1 deletion.
  1. +4 −0 examples/default.ps1
  2. +2 −1 psake.psm1
View
@@ -16,4 +16,8 @@ task Compile -depends Clean {
task Clean {
$cleanMessage
+}
+
+task ? -Description "Helper to display task info" {
+ Write-Documentation
}
View
@@ -239,9 +239,10 @@ function Write-Documentation
continue
}
$task = $script:context.Peek().tasks.$key
- $content = "" | Select-Object Name, Description
+ $content = "" | Select-Object Name, Description, "Depends On"
$content.Name = $task.Name
$content.Description = $task.Description
+ $content."Depends On" = [System.String]::Join(", ", $task.DependsON)
$index = $list.Add($content)
}

0 comments on commit 286d2a5

Please sign in to comment.