Function p4-adauthtriggerconfigure { $servercheck = p4get-server if ($servercheck.pingsuccess.equals($true)) { $authtriggerline = 'activedirectory auth-check auth "powershell -command p4adauth -depotname ' + $servercheck.server +' -username %user% -password $input"' $oldtriggers = p4get-triggers $authtriggerindex = match-onelineindex -textarray $oldtriggers -linematch auth-check $newtriggers = replace-line -textarray $oldtriggers -replaceindex $authtriggerindex -newlinedata $authtriggerline p4put-triggers -triggerArray $newtriggers } }
# | 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. |