git-open.psm1

# if debugging, set moduleRoot to current directory
if ($MyInvocation.MyCommand.Path) {
  $moduleRoot = Split-Path -Path $MyInvocation.MyCommand.Path
}else {
  $moduleRoot = $PWD.Path
}

# Load up the dependent functions
"$moduleRoot\Public\*.ps1",
"$moduleRoot\Private\*.ps1" |
  Resolve-Path |
      Where-Object { -not ($_.ProviderPath.ToLower().Contains('.tests.')) } |
        ForEach-Object { . $_.ProviderPath }

New-Alias -Name gitopen -Value Invoke-GitOpen -Force -ErrorAction SilentlyContinue
Export-ModuleMember -Function Invoke-GitOpen -Alias gitopen