git related improvements and implementations
+ Get-GitRepo - Clone or update a repo, with tag support + Get-GitHubReleaseTag - Grab tag from latest release page + Refresh-GitRepo - Stage all possible changes, discarding any previously stageds changes = GitHub repo is now git repo - as some code isn't GitHub specific + cat Alias for Get-Content = Get-PossiblArguments improvement = Invoke-WebDownload fix = dcedit fixing bad argument processing
This commit is contained in:
parent
aa44d120e4
commit
8a93a0f123
11 changed files with 85 additions and 11 deletions
1
base/Aliases/cat.ps1
Normal file
1
base/Aliases/cat.ps1
Normal file
|
@ -0,0 +1 @@
|
|||
Get-Content
|
|
@ -5,7 +5,15 @@
|
|||
)
|
||||
$local:possibleValues = $fullValueSet
|
||||
if( $wordToComplete ) {
|
||||
$possibleValues = $possibleValues | Where-Object { $_ -match $wordToComplete }
|
||||
$possibleValues = $possibleValues |
|
||||
Where-Object { $_ -match $wordToComplete } |
|
||||
ForEach-Object {
|
||||
if( $_ -match ' ' ) {
|
||||
"'$_'"
|
||||
} else {
|
||||
$_
|
||||
}
|
||||
}
|
||||
if( -not $strict -and ($wordToComplete -notin $possibleValues) ) {
|
||||
$possibleValues = $( $wordToComplete; $possibleValues )
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ process {
|
|||
$outputFileName = Join-Path $OutputPath $outputFileName
|
||||
|
||||
if( (Test-Path $outputFileName) -and -not $Force) {
|
||||
throw "$OutputPath already exists"
|
||||
throw "$OutputFileName file already exists"
|
||||
}
|
||||
|
||||
Write-Verbose "About to start download from:`n`t$Url`n`tto`n`t$outputFileName`n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue