SamErde / PSPreworkout

A special mix of tools to help jump start your PowerShell session!
http://day3bits.com/PSPreworkout/
MIT License
38 stars 3 forks source link

Refactor to accept object from pipeline and also ensure valid filesystem FilePath for output. #18

Closed SamErde closed 3 weeks ago

SamErde commented 3 weeks ago

Pull Request

Issue

Per discussion 14, the original version of this script fails if the current location is using a PSProvider other than FileSystem (eg registry).

The function should also accept objects from the pipeline.

Description

Add ability to accept the source object from the pipeline.

Refactor the FilePath handling to:

Add cleanup at end of script.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license.