Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write-ModuleStubFile: Aliases for Functions Within Module Are Missing From Stubs #1224

Closed
randomnote1 opened this issue Sep 19, 2018 · 0 comments · Fixed by #1225
Closed
Labels
enhancement The issue is an enhancement request.

Comments

@randomnote1
Copy link
Contributor

Details of the scenario you tried and the problem that is occurring

Aliases from the module which the stubs are created from are missing.

Verbose logs showing the problem

N/A

Suggested solution to the issue

Use Get-Alias for all cmdlets in the module to determine what aliases should be created.

The DSC configuration that is used to reproduce the issue (as detailed as possible)

N/A

SQL Server edition and version the target node is running

N/A

SQL Server PowerShell modules present on the target node

N/A

The operating system the target node is running

N/A

Version and build of PowerShell the target node is running

N/A

Version of the DSC module that was used ('dev' if using current dev branch)

N/A

@johlju johlju added enhancement The issue is an enhancement request. in progress The issue is being actively worked on by someone. labels Sep 19, 2018
johlju pushed a commit that referenced this issue Sep 20, 2018
- Changes to Write-ModuleStubFile.ps1
  - Create aliases for cmdlets in the stubbed module which have aliases (issue #1224).
  - Use a string builder to build the function stubs.
  - Fixed formatting issues for the function to work with modules other than SqlServer.
@johlju johlju removed the in progress The issue is being actively worked on by someone. label Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants