Skip to content

Commit 5ea2bb5

Browse files
v3.0.0 cross-platform reorg
1 parent 69a1dbf commit 5ea2bb5

File tree

7 files changed

+36
-16
lines changed

7 files changed

+36
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ Or check out the individual commands:
2121

2222
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`.
2323

24-
*last updated 12 October 2018*
24+
*last updated 22 October 2018*

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log for PSRemoteOperations
22

3+
## v3.0.0
4+
5+
+ restructured module to support Core and Windows through nested modules. (Issue #9)
6+
37
## v2.0.0
48

59
+ Added SupportsShouldProcess to `New-PSRemoteOperation`

core/PSRemoteOperations.psm1

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#region main code
2+
3+
. $PSScriptRoot\..\functions.ps1
4+
. $PSScriptRoot\..\private.ps1
5+
6+
#if running Windows on Powershell Core, include another command
7+
if ($isWindows) {
8+
. $PSScriptRoot\..\windows\Register-PSRemoteOperationWatcher.ps1
9+
}
10+
#endregion
11+
12+
#add default properties for the custom result object
13+
Update-Typedata -TypeName RemoteOpResult -DefaultDisplayPropertySet "Computername", "Date", "Scriptblock", "Filepath", "ArgumentList", "Completed", "Error" -force
14+
15+
#add AutoCompleters
16+
. $PSScriptRoot\..\autocompleters.ps1

PSRemoteOperations.psm1 renamed to private.ps1

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11

2-
#region main code
3-
4-
. $PSScriptRoot\functions.ps1
5-
. $PSScriptRoot\Register-PSRemoteOperationWatcher.ps1
6-
7-
#endregion
8-
9-
102
#region private functions
113
Function Convert-HashtableString {
124
[cmdletbinding()]
@@ -108,10 +100,3 @@ Function Convert-HashTableToCode {
108100
} #end function
109101

110102
#endregion
111-
112-
#add default properties for the custom result object
113-
Update-Typedata -TypeName RemoteOpResult -DefaultDisplayPropertySet "Computername", "Date", "Scriptblock", "Filepath", "ArgumentList", "Completed", "Error" -force
114-
115-
#add AutoCompleters
116-
. $PSScriptRoot\autocompleters.ps1
117-

windows/PSRemoteOperations.psm1

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
#region main code
3+
4+
. $PSScriptRoot\..\functions.ps1
5+
. $PSScriptRoot\..\private.ps1
6+
. $PSScriptRoot\Register-PSRemoteOperationWatcher.ps1
7+
8+
#endregion
9+
10+
#add default properties for the custom result object
11+
Update-Typedata -TypeName RemoteOpResult -DefaultDisplayPropertySet "Computername", "Date", "Scriptblock", "Filepath", "ArgumentList", "Completed", "Error" -force
12+
13+
#add AutoCompleters
14+
. $PSScriptRoot\..\autocompleters.ps1
15+
File renamed without changes.

0 commit comments

Comments
 (0)