Public/Update-RemoteRepository.ps1
using module "..\Private\RepositoryInfo.psm1" function Update-RemoteRepository { [CmdletBinding()] [OutputType([Boolean])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)] [RepositoryInfo[]]$RepositoryInfo ) begin { Write-Debug "Begin Update-GitRepository" } process { foreach ($item in $RepositoryInfo) { $push = git -C $item.DirectoryInfo.FullName push --all if (-not [string]::IsNullOrEmpty($gitcommit)) { write-host "push: $push" } return $true } } end { Write-Debug "End Update-GitRepository" } } |