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

Support to PowerShell in Constrained Language Mode #98

Closed
schenardie opened this issue Feb 15, 2023 · 4 comments · Fixed by #99
Closed

Support to PowerShell in Constrained Language Mode #98

schenardie opened this issue Feb 15, 2023 · 4 comments · Fixed by #99

Comments

@schenardie
Copy link

Hi there, would be possible to change the PSM1 export-modulemembers to not use * (not supported on constrained language mode) to instead use

Export-ModuleMember -Function ConvertFrom-Yaml,ConvertTo-Yaml -Alias cfy,cty

That would be really helpful for people who run the module controlled environments.

Thanks

@gabriel-samfira
Copy link
Member

Hi @schenardie !

I merged #99 which should fix this. I will try to allocate some time to push this to powershell gallery this week. Until then, would you mind using the latest commit?

@schenardie
Copy link
Author

I can't because every module that is not coming from Gallery cannot be changed after installed (otherwise the hash will change) but I'll wait until you publish. TBH wasn't expecting that quick of a turnaround so thank again.

@gabriel-samfira
Copy link
Member

New version has been published to the powershell gallery. Sorry for the delay. Give it a shot.

@schenardie
Copy link
Author

You are a legend. Thanks so much for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants