function p4get-maintenanceTasks {param([switch]$allInstances) $static = [xml](gc $env:depotsxml) if ($allInstances) { if ($static.perforce.maintenance) { $static.perforce.maintenance } else { write-error "No maintenance task data is defined." } } else { if ($static.perforce.maintenance | ?{$_.name -eq (p4get-replicationTopology).name}) { $static.perforce.maintenance | ?{$_.name -eq (p4get-replicationTopology).name} } else { if ($static.perforce.maintenance | ?{$_.name -eq $env:p4server}) { $static.perforce.maintenance | ?{$_.name -eq $env:p4server} } else { write-error "No maintenance task data is defined for this Perforce instance." } } } }
# | 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. |