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

Script name creates a naming conflict with the function #2

Open
BristleBeard opened this issue Oct 25, 2018 · 0 comments
Open

Script name creates a naming conflict with the function #2

BristleBeard opened this issue Oct 25, 2018 · 0 comments

Comments

@BristleBeard
Copy link

I'm not really sure if this qualifies as an actual issue. A naming conflict is being created because the script name and function within it are both called Get-vmotion.

If I use Install-Script the script name itself registers as a command. When I try Get-vMotion it executes the script itself and registers the function, but I can not get it to run the function.

I've hit this before where two modules (Hyper-V & PowerCLI) had the same command name, and I got around it by prefixing the module when I import it, or directly referencing the one I want- (vmware.powercli/Get-VM instead of Get-VM). I have not been able to use that method in this case because the script isn't a module.

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

No branches or pull requests

1 participant