Skip to content

Commit b7a7142

Browse files
authored
Merge pull request #72 from jwittner/fix/exportYamlCmdlets
Another attempt at exports
2 parents 5129fd5 + c8145c5 commit b7a7142

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

UnitySetup/UnitySetup.psd1

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,16 @@ ScriptsToProcess = @()
7373
# NestedModules = @()
7474

7575
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
76-
FunctionsToExport = '*-Unity*'
76+
77+
FunctionsToExport = @(
78+
'Find-UnitySetupInstaller',
79+
'Get-UnityProjectInstance',
80+
'Get-UnitySetupInstance',
81+
'Install-UnitySetupInstance',
82+
'Select-UnitySetupInstance',
83+
'Uninstall-UnitySetupInstance',
84+
'Start-UnityEditor'
85+
)
7786

7887
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
7988
CmdletsToExport = @()
@@ -82,7 +91,12 @@ CmdletsToExport = @()
8291
VariablesToExport = @()
8392

8493
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
85-
AliasesToExport = '*'
94+
AliasesToExport = @(
95+
'gusi',
96+
'gupi',
97+
'susi',
98+
'sue'
99+
)
86100

87101
# DSC resources to export from this module
88102
# DscResourcesToExport = @()

UnitySetup/UnitySetup.psm1

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,4 @@ function Start-UnityEditor
859859
New-Alias -Name gusi -Value Get-UnitySetupInstance
860860
New-Alias -Name gupi -Value Get-UnityProjectInstance
861861
New-Alias -Name susi -Value Select-UnitySetupInstance
862-
New-Alias -Name sue -Value Start-UnityEditor
863-
864-
865-
Export-ModuleMember -Function '*-Unity*' -Alias '*'
862+
New-Alias -Name sue -Value Start-UnityEditor

0 commit comments

Comments
 (0)