Commits

Kevin Berridge committed 275c05e

psake supports configuration switch, added hgtoday function

Comments (0)

Files changed (1)

Microsoft.PowerShell_profile.ps1

   }
 }
 
+function hgtoday([string]$user='berridge') {
+  hg sl -u $user -d (get-date -format d)
+}
+
 function cleanvs([switch]$whatif) {
   if ($whatif) {
     ls . -include bin,obj PBS.Libraries -recurse | where{$_ -notmatch '.hg'} | remove-item -recurse -whatif
     [alias("s")]
     [string[]]$specs=$null,
     [alias("r")]
-    [string]$run=$null
+    [string]$run=$null,
+    [alias("c")]
+    [string]$configuration=$null
   )
 
   if ($pbenv) { $properties.environment = $pbenv }
   if ($tags) { $parameters.tags = $tags }
   if ($specs) { $parameters.specs = $specs }
   if ($run) { $parameters.run = $run }  
+  if ($configuration) { $properties.BuildConfiguration = $configuration }
 
   $psakeParams = @{ taskList = $taskList; docs = $docs; parameters = $parameters; properties = $properties }