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

Export cmdlets for automation scripts #422

Closed
Stevenpc3 opened this issue Sep 23, 2015 · 3 comments
Closed

Export cmdlets for automation scripts #422

Stevenpc3 opened this issue Sep 23, 2015 · 3 comments

Comments

@Stevenpc3
Copy link

I am trying to add a cmdlet as an extension. Perhaps I am doing it wrong, but my cmdlet gets imported by chocoInstaller but is never exported. This line shows that and a run with debug also shows that.

Export-ModuleMember -Function * -Alias *

This should be

Export-ModuleMember -Function * -Alias * -Cmdlet *

@ferventcoder
Copy link
Member

You are correct.

@ferventcoder
Copy link
Member

We can throw that into the upcoming release. It's a tiny fix. If you want to do a PR for it, make sure you target stable branch.

@ferventcoder
Copy link
Member

:shipit:

ferventcoder added a commit that referenced this issue Sep 25, 2015
Ensure that all cmdlets, in addition to all functions and aliases, get
exported by chocolateyInstaller.psm1 for use with extensions.
ferventcoder added a commit that referenced this issue Sep 25, 2015
* stable:
  (GH-414) Ensure choco pkg is known as installed
  (GH-422) export cmdlets
  (doc)(GH-424) Update legacy instructions
@ferventcoder ferventcoder changed the title ChocoInstaller export cmdlets Export cmdlets for automation scripts Oct 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants