Function match-onelineindex {param([Parameter(Mandatory=$true)][array]$textarray,[Parameter(Mandatory=$true)][string]$linematch) [array]$results = $null $i=0 $arraycount = $textarray.count do { if ($textarray[$i] -match $linematch) { $results += $i } $i++ } while ($i -le $arraycount) if ($results.count -gt 1) { write-error "More than one line matched for an ambiguous result." break } else { $results } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 8410 | Aaron Bockelie |
Root checkin, Perforce Powershell wrapper. Still lots of work to be done, namely documentation and deployment tools, for instance, get-help needs work on the majority of these tools. Additionally, the /lib structure needs a little bit of condensation, probably into major groups (depot, userspec, clientspec, group management, and so on) that way function family can exist under each resource. |