Permalink
Browse files

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

…epends on
  • Loading branch information...
staxmanade authored and stej committed Apr 29, 2010
1 parent e724e28 commit 4019e2d8c5ab4f01b0e490e91fd919e1b6dfd200
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 4019e2d

Please sign in to comment.