Skip to content

Instantly share code, notes, and snippets.

@bielawb
Created July 16, 2017 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bielawb/280cfed16ad4393ff52bb6cb9dde47c6 to your computer and use it in GitHub Desktop.
Save bielawb/280cfed16ad4393ff52bb6cb9dde47c6 to your computer and use it in GitHub Desktop.
Tworzymy funkcję niezbędną do maskowania polecenia na innych komputerach
$polecenie = Get-Command Get-GitHubPullRequest
@"
function Get-GitHubPullRequest {
param (
$(
[Management.Automation.ProxyCommand]::
GetParamBlock(
$polecenie
)
)
)
throw "Błąd w poleceniu Get-GitHubPullRequest - zamaskuj mnie!"
}
"@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment