< Back

Set-ModuleFunction

Sun Jan 12, 2020 6:51 pm

NAME Set-ModuleFunction



SYNOPSIS

Set FunctionsToExport in a module manifest





SYNTAX

Set-ModuleFunction [[-Name] <String>] [[-FunctionsToExport] <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Set FunctionsToExport in a module manifest





PARAMETERS

-Name <String>

Path to module to inspect. Defaults to ProjectPath\\ProjectName via Get-BuildVariable



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-FunctionsToExport <String[]>



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Major thanks to Joel Bennett for the code behind working with the psd1

Source: https://github.com/PoshCode/Configuration



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-ModuleFunction















RELATED LINKS

https://github.com/RamblingCookieMonster/BuildHelpers

about_BuildHelpers