You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can Export-ModuleMember (but not export classes), but we cannot Import-ModuleMember (having this would help modules bootstrap themselves move flexibly)
There are fairly simple scenarios that pure PowerShell does not do. Most of these revolve around "completeness" for a given noun.
To give a couple of examples for a couple of data formats:
CLIXML
Clixml has Import/Export, but lacks ConvertTo/ConvertFrom and Out
ConvertTo-Clixml
should be an in-memoryExport-Clixml
#720ConvertFrom-Clixml
should be an in-memoryImport-Clixml
#721Convert-Clixml
should convert to or from clixml #722Out-Clixml
should stream formatted objects back as Clixml #723Command
Search-Command
should search loaded commands #1086Use-Command
should safely splat a command #1087JSON
JSON has ConvertFrom/ConvertTo, but not Import/Export and Out
Export-JSON
should ConvertTo-JSON and write to disk #724Import-JSON
should ConvertFrom-JSON on disk #725Convert-JSON
should Convert to or from JSON #726Out-JSON
should output formatted objects as JSON #727HTML
HTML can ConvertTo, but nothing else.
ConvertFrom-HTML
should turn HTML into PSObject #728Convert-HTML
should manage HTML conversions #729Import-HTML
should import content as HTML or XHTML #730Export-HTML
should export content as HTML or XHTML #731Out-HTML
should output formatted HTML or XHTML #732Module
Export-Module
should export a moduleInvoke-Module
should invoke commands from a module #1129Mount-Module
should mount a module as a drive #1128Set-Module
should change a module #1131Split-Module
should split modules into smaller partsUse-Module
should use a module's context #1130ModuleMember
We can Export-ModuleMember (but not export classes), but we cannot Import-ModuleMember (having this would help modules bootstrap themselves move flexibly)
Import-ModuleMember
should import functions and aliases from objects #743Object
Find-Object
should find properties or values within an object #884Invoke-Object
should allow reflected invocationOut-Object
should output objects (and be aliased to common output statement names) #885Search-Object
should perform a recursive search within an object #883Set-Object
should perform updates to an objectSome of these commands may be pulled from Pipeworks, though dust may need to be removed and docs will need to be updated.
The text was updated successfully, but these errors were encountered: