Public/Coding/New-EdenServiceFunction.ps1
function New-EdenServiceFunction { <# .SYNOPSIS Creating new function. .DESCRIPTION Runs the './Eden/Coding/New-ServiceFunction.ps1' script. #> [CmdletBinding()] param( # The name of the new component to create. [Alias("n")] [Parameter(Mandatory=$True)] [String] $Name, # (Optional) The name of the service the component is being added to. [Alias("svn")] [String] $ServiceName, # (Optional) The name of the solution the component is being added to. [Alias("sln")] [String] $SolutionName, # The name of the local or global settins file to pass to the Eden script. [Alias("sn")] [String] $SettingsName, # The additional arguments to pass to the Eden script. [Alias("aa")] [HashTable] $AdditionalArguments ) Invoke-EdenCommandCodeFlow ` -LocalCommandPath "Coding/New-ServiceFunction" ` -Name $Name ` -Servicename $ServiceName ` -SolutionName $SolutionName ` -SettingsName $SettingsName ` -CommandGroup "Coding" ` -Message "Creating new function." ` -AdditionalArguments $AdditionalArguments } New-Alias ` -Name e-cscf ` -Value New-EdenServiceFunction ` -Force |