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:
lksz 2021-04-04 14:42:29 -04:00
부모 aa44d120e4
커밋 8a93a0f123
11개의 변경된 파일85개의 추가작업 그리고 11개의 파일을 삭제

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"