mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-15 17:30:37 -06:00
Rename 'Do-PreProcessing' to 'Invoke-Preprocessing' - Update some Comments
This commit is contained in:
parent
1803337574
commit
24d33fccd2
@ -37,11 +37,11 @@ $header = @"
|
|||||||
"@
|
"@
|
||||||
|
|
||||||
if (-NOT $SkipPreprocessing) {
|
if (-NOT $SkipPreprocessing) {
|
||||||
# Dot source the 'Do-PreProcessing' Function from 'tools/Do-PreProcessing.ps1' Function
|
# Dot source the 'Invoke-Preprocessing' Function from 'tools/Invoke-Preprocessing.ps1' Script
|
||||||
. "$workingdir\tools\Do-PreProcessing.ps1"
|
. "$workingdir\tools\Invoke-Preprocessing.ps1"
|
||||||
$msg = "Pre-req: Code Formatting"
|
$msg = "Pre-req: Code Formatting"
|
||||||
Update-Progress "Pre-req: Allocating Memory" 0
|
Update-Progress "Pre-req: Allocating Memory" 0
|
||||||
Do-PreProcessing $msg
|
Invoke-Preprocessing $msg
|
||||||
}
|
}
|
||||||
|
|
||||||
# Create the script in memory.
|
# Create the script in memory.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function Do-PreProcessing {
|
function Invoke-Preprocessing {
|
||||||
param (
|
param (
|
||||||
[Parameter(Mandatory, position=0)]
|
[Parameter(Mandatory, position=0)]
|
||||||
[string]$ProgressStatusMessage,
|
[string]$ProgressStatusMessage,
|
||||||
@ -7,8 +7,8 @@ function Do-PreProcessing {
|
|||||||
[string]$ProgressActivity = "Pre-Processing"
|
[string]$ProgressActivity = "Pre-Processing"
|
||||||
)
|
)
|
||||||
|
|
||||||
# We could do Pre-processing on this script file, but by excluding it.. we could possible weird behavior,
|
# We can do Pre-processing on this script file, but by excluding it we're avoiding possible weird behavior,
|
||||||
# like future runs of this tool being different then previous ones, as the script has modified it self before one or more times.
|
# like future runs of this tool being different then previous ones, as the script has modified it self before (one or more times).
|
||||||
#
|
#
|
||||||
# Note:
|
# Note:
|
||||||
# There's way too many possible edge cases, not to mention there's no Unit Testing for these tools.. which's a Good Recipe for a Janky/Sensitive Script.
|
# There's way too many possible edge cases, not to mention there's no Unit Testing for these tools.. which's a Good Recipe for a Janky/Sensitive Script.
|
||||||
@ -21,7 +21,7 @@ function Do-PreProcessing {
|
|||||||
for ($i = 0; $i -lt $numOfFiles; $i++) {
|
for ($i = 0; $i -lt $numOfFiles; $i++) {
|
||||||
$file = $files[$i]
|
$file = $files[$i]
|
||||||
|
|
||||||
# Make sure the file isn't in Excluded Files List
|
# If the file is in Exclude List, don't proceed to check/modify said file.
|
||||||
$fileIsExcluded = $False
|
$fileIsExcluded = $False
|
||||||
for ($j = 0; $j -lt $excludedFiles.Count; $j++) {
|
for ($j = 0; $j -lt $excludedFiles.Count; $j++) {
|
||||||
$excluded = $excludedFiles[$j]
|
$excluded = $excludedFiles[$j]
|
Loading…
Reference in New Issue
Block a user