<# FPS:Containers:Common:Public:Push-NeededFor:ACTIVE #>

 

function Push-NeededFor() {

 

<#

.DESCRIPTION

Module: Common

Public CmdLet: Push-NeededFor

 

Confirms if a function (CmdLet) exists.  This is a KEY foundational CmdLet and is loaded perpetually via Pro-Config.ps1

 

.EXAMPLE

 

if (Push-NeededFor Mount-Path) { . (Get-ActiveFileNm -PS1 Mount-Path) }

 

.CC

 

[2024.09.18 JD] Original code release

 

.NOTES

Super Important - Never include Push-NeededFor as a dependency.  It is perpetually available via Pro-Config.ps1. 

 

#>

 

    [CmdletBinding()]

    param(

    [Parameter(Position=0, Mandatory=$true)] [string]$pName

    )

 

    if ([bool](Get-Command -Name $pName -ErrorAction SilentlyContinue)) { return $false } else { return $true }

 

}