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

Use of Unapproved Verbs #54

Open
MarkNavGS opened this issue Aug 7, 2018 · 8 comments
Open

Use of Unapproved Verbs #54

MarkNavGS opened this issue Aug 7, 2018 · 8 comments

Comments

@MarkNavGS
Copy link

Do you have plans to address this?

WARNING: The names of some imported commands from the module 'Cloud.Ready.Software.Windows' include unapproved verbs
that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again
with the Verbose parameter. For a list of approved verbs, type Get-Verb.

@waldo1001
Copy link
Owner

I wasn't planning to address this, actually. You think it's necessary?

@jhoek
Copy link
Contributor

jhoek commented Feb 18, 2019

I would argue that it is. What you could do in order not to break scripts that use your module is give the cmdlets a proper name with an approved verb, and specify the old name as an alias.

Alternatively, give the cmdlets a proper name with an approved verb, and lets your users create their aliases locally?

@waldo1001
Copy link
Owner

Hm, that's actually a good idea...
I'll experiment with that

@waldo1001
Copy link
Owner

... when I find the time ...
;-)

@nickrobbo
Copy link

nickrobbo commented Apr 15, 2019

Is this planned to be fixed in the future? I understand it is probably quite a low priority. I am using the "Import-NAVModules" function quite a lot in my scripts and it would be nice to suppress the warnings, even if it is just for this function.

@jhoek
Copy link
Contributor

jhoek commented Apr 15, 2019

@nickrobbo ImportModule does have a -DisableNameChecking parameter... ;-)

@nickrobbo
Copy link

@jhoek yes this works with Import-Module, but not with the command I am using:

"Import-NAVModules" - "PSModules/Cloud.Ready.Software.NAV/Import-NAVModules.ps1"

although I can see that this parameter is used within the function, so I am not sure why this happens.

@jhoek
Copy link
Contributor

jhoek commented Apr 15, 2019

@nickrobbo I see. :-)

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

4 participants