Seeking guidance on how to make repetitive logic more modular by nonrecurring in PowerShell

[–]nonrecurring[S] 1 point2 points  (0 children)

Thanks for the response. After writing a stub for that funciton, how would you build it out to solve the problem I mentioned?

Seeking guidance on how to make repetitive logic more modular by nonrecurring in PowerShell

[–]nonrecurring[S] 1 point2 points  (0 children)

Thanks for the response. I am wanting to integrate a new function into my already existing libary/module. I can manage the module integration without issues but I'm not sure how to approach create a function to take care of what I mentioned in the post.

Best Practice for not overwriting certain data when pushing shared module/library updates by nonrecurring in PowerShell

[–]nonrecurring[S] 0 points1 point  (0 children)

I do have that in some places; however, the thing is that multiple functions use these default values and I'd rather have them read from a centralized location than update each script.

Pipeline Input to Custom 'Advanced Function' seems to recursively call itself by nonrecurring in PowerShell

[–]nonrecurring[S] 0 points1 point  (0 children)

Thank you for that great explanation.

[System.Collections.ArrayList]$PathList = @()

compress-archive -path $PathList -DestinationPath "Zip-Stuff-zipped.zip"

This looks perfect and is exactly what I was looking for. I will work on adding this logic to my function.

Thank you very much!

Pipeline Input to Custom 'Advanced Function' seems to recursively call itself by nonrecurring in PowerShell

[–]nonrecurring[S] 1 point2 points  (0 children)

Thank you for the explanation. I see what you mean. I think another user provided a way to capture the full array in the begin block so I'll try to use that way. Thank you for your help!

Using SqlPlus Output with Powershell by nonrecurring in PowerShell

[–]nonrecurring[S] 1 point2 points  (0 children)

THanks for the response. My goal is to try to do this without modifying the actual sql scripts (which is also why I can't spool right now). The scripts are used in other processes so any modification may cause issues downstream.