mirror of
https://github.com/Ed94/refactor.git
synced 2024-12-22 06:54:44 -08:00
Various updates to scripts
This commit is contained in:
parent
f9b8f02351
commit
a0a3e42e6a
@ -1,6 +1,6 @@
|
|||||||
if ($PSVersionTable.PSEdition -ne "Core")
|
if ($Host.UI.RawUI -and $Host.UI.RawUI.CursorPosition)
|
||||||
{
|
{
|
||||||
$Host.UI.RawUI.CursorPosition = @{X=0; Y=0}
|
cls
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -80,6 +80,8 @@ if ( $test -eq $true )
|
|||||||
$args_ninja += "-C"
|
$args_ninja += "-C"
|
||||||
$args_ninja += $path_test_build
|
$args_ninja += $path_test_build
|
||||||
|
|
||||||
Start-Process ninja $args_ninja -Wait -NoNewWindow -WorkingDirectory $path_test
|
write-host $args_ninja
|
||||||
|
|
||||||
|
Start-Process ninja $args_ninja -Wait -NoNewWindow -WorkingDirectory $path_root
|
||||||
#endregion Test Build
|
#endregion Test Build
|
||||||
}
|
}
|
||||||
|
@ -18,4 +18,7 @@ if ( Test-Path $path_test_build )
|
|||||||
|
|
||||||
$files = Get-ChildItem -Recurse -Path $path_test -Include $include -Exclude $exclude
|
$files = Get-ChildItem -Recurse -Path $path_test -Include $include -Exclude $exclude
|
||||||
|
|
||||||
Remove-Item $files
|
if ( $files )
|
||||||
|
{
|
||||||
|
Remove-Item $files
|
||||||
|
}
|
||||||
|
@ -46,7 +46,7 @@ if ( $false ){
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$refactorParams = @(
|
$refactorParams = @(
|
||||||
"-debug",
|
# "-debug",
|
||||||
"-num=$($targetFiles.Count)"
|
"-num=$($targetFiles.Count)"
|
||||||
"-src=$($targetFiles)",
|
"-src=$($targetFiles)",
|
||||||
"-dst=$($refactoredFiles)",
|
"-dst=$($refactoredFiles)",
|
||||||
@ -86,7 +86,7 @@ foreach ( $file in $targetFiles )
|
|||||||
}
|
}
|
||||||
|
|
||||||
$refactorParams = @(
|
$refactorParams = @(
|
||||||
"-debug",
|
# "-debug",
|
||||||
"-num=$($targetFiles.Count)"
|
"-num=$($targetFiles.Count)"
|
||||||
"-src=$($targetFiles)",
|
"-src=$($targetFiles)",
|
||||||
"-dst=$($refactoredFiles)",
|
"-dst=$($refactoredFiles)",
|
||||||
|
Loading…
Reference in New Issue
Block a user