Skip to content

Commit

Permalink
Export function Get-GitConciseStatusFromCache
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengweidi committed Sep 5, 2022
1 parent 833381c commit 837e333
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GitStatusCachePoshClient.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ function Get-GitStatusFromCache
return Send-RequestToGitStatusCache($request)
}

function Get-GitConciseStatusFromCache
{
$request = new-object psobject -property @{ Version = 1; Action = "GetConciseStatus"; Path = (Get-Location).Path } | ConvertTo-Json -Compress
return Send-RequestToGitStatusCache($request)
}

function Get-GitStatusCacheStatistics
{
$request = new-object psobject -property @{ Version = 1; Action = "GetCacheStatistics"; } | ConvertTo-Json -Compress
Expand Down
1 change: 1 addition & 0 deletions GitStatusCachePoshClient.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Push-Location $psScriptRoot
Pop-Location

Export-ModuleMember -Function @('Get-GitStatusFromCache')
Export-ModuleMember -Function @('Get-GitConciseStatusFromCache')
Export-ModuleMember -Function @('Get-GitStatusCacheStatistics')
Export-ModuleMember -Function @('Remove-GitStatusCache')
Export-ModuleMember -Function @('Restart-GitStatusCache')
Expand Down

0 comments on commit 837e333

Please sign in to comment.