Closed adamfortuno closed 6 years ago
unlike Import-Module
, -ModulesToImport
parameter supports module name, but not module path.
When commit #178 will be accepted it will work
If the function only accepts the module's name, do I need to keep the module's folder/files in the user or global module path?
Why did not you give yourself a chance to try ? ;-)
...both sopported.
That worked.
Thank you @MVKozlov!
I'm running PoshRSJob v1.7.4.4 on Powershell v5.1.15063.1029 on Windows 10.
I'm navigating to a folder named "Coffee.Application" with the following files:
I then run the following:
Receive-RSJob -Name t1
, returns the following error:The function
Get-Foo
is in the moduleCoffee.Application
. I expected the thread to be able to execute theGet-Foo
function in theCoffee.Application
module.The module's script file is in the current workspace. I can load the module into the active session with the following:
Once loaded, I can access any exposed functions.
I have tried closing all session. Starting a fresh session and making the call to
Start-RSJob
the first call made.