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:
부모
aa44d120e4
커밋
8a93a0f123
11개의 변경된 파일과 85개의 추가작업 그리고 11개의 파일을 삭제
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"
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue