Internal/Get-AddLibraryCommand.ps1

1
2
3
4
5
6
7
8
9
function Get-AddLibraryCommand {
    param(
        [ValidateScript( { Test-Path $_ -PathType Container })]
        [string] $Library
    )

    Write-Output ".libPaths( c( .libPaths(), '$( Get-EscapedString $Library )' ) )"
}