Skip to content

Commit

Permalink
v3.0.0 cross-platform reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhitsolutions committed Oct 22, 2018
1 parent 69a1dbf commit 5ea2bb5
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Or check out the individual commands:

The long-term goal is to ensure that this module will work cross-platform and in PowerShell Core. Basic functionality should exist running this module on PowerShell Core, both in Windows and non-Windows environments. Support for CMS messages is limited to Windows platforms through the use of dynamic parameters. `Register-PSRemoteOperationWatcher` requires a Windows platform but should work under PowerShell Core. For non-Windows systems, you will have to come up with your own tooling for monitoring and execution using `Invoke-PSRemoteOperation`.

*last updated 12 October 2018*
*last updated 22 October 2018*
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log for PSRemoteOperations

## v3.0.0

+ restructured module to support Core and Windows through nested modules. (Issue #9)

## v2.0.0

+ Added SupportsShouldProcess to `New-PSRemoteOperation`
Expand Down
16 changes: 16 additions & 0 deletions core/PSRemoteOperations.psm1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#region main code

. $PSScriptRoot\..\functions.ps1
. $PSScriptRoot\..\private.ps1

#if running Windows on Powershell Core, include another command
if ($isWindows) {
. $PSScriptRoot\..\windows\Register-PSRemoteOperationWatcher.ps1
}
#endregion

#add default properties for the custom result object
Update-Typedata -TypeName RemoteOpResult -DefaultDisplayPropertySet "Computername", "Date", "Scriptblock", "Filepath", "ArgumentList", "Completed", "Error" -force

#add AutoCompleters
. $PSScriptRoot\..\autocompleters.ps1
15 changes: 0 additions & 15 deletions PSRemoteOperations.psm1 → private.ps1
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@

#region main code

. $PSScriptRoot\functions.ps1
. $PSScriptRoot\Register-PSRemoteOperationWatcher.ps1

#endregion


#region private functions
Function Convert-HashtableString {
[cmdletbinding()]
Expand Down Expand Up @@ -108,10 +100,3 @@ Function Convert-HashTableToCode {
} #end function

#endregion

#add default properties for the custom result object
Update-Typedata -TypeName RemoteOpResult -DefaultDisplayPropertySet "Computername", "Date", "Scriptblock", "Filepath", "ArgumentList", "Completed", "Error" -force

#add AutoCompleters
. $PSScriptRoot\autocompleters.ps1

15 changes: 15 additions & 0 deletions windows/PSRemoteOperations.psm1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

#region main code

. $PSScriptRoot\..\functions.ps1
. $PSScriptRoot\..\private.ps1
. $PSScriptRoot\Register-PSRemoteOperationWatcher.ps1

#endregion

#add default properties for the custom result object
Update-Typedata -TypeName RemoteOpResult -DefaultDisplayPropertySet "Computername", "Date", "Scriptblock", "Filepath", "ArgumentList", "Completed", "Error" -force

#add AutoCompleters
. $PSScriptRoot\..\autocompleters.ps1

File renamed without changes.
File renamed without changes.

0 comments on commit 5ea2bb5

Please sign in to comment.