PoshCode Archive  All files named "ConvertTo-Function.ps1"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for ConvertTo-Function.ps1

2018-06-10
14:25
Added: This script takes a path to a script (full or relative), a fileinfo object, or either as pipeline input. It converts the script’s content to a function of the same name as the file. For example, ./ConvertTo-Function Get-Server.ps1 would create a function called Get-Server. If the function already exists, it will replace it with the new script. file: [5b00d867ba] check-in: [77947463ab] user: unknown branch: trunk, size: 1587