< Back

Set-ModuleAlias

Sun Jan 12, 2020 6:49 pm

NAME Set-ModuleAlias



SYNOPSIS

EXPIRIMENTAL: Set AliasesToExport in a module manifest





SYNTAX

Set-ModuleAlias [[-Name] <String>] [[-AliasesToExport] <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

EXPIRIMENTAL: Set AliasesToExport in a module manifest





PARAMETERS

-Name <String>

Name or 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



-AliasesToExport <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-ModuleAlias















RELATED LINKS

https://github.com/RamblingCookieMonster/BuildHelpers

about_BuildHelpers