mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Add shell_plugins to abstract shell-specific functions out of runner, add winrm connection plugin, add initial Windows modules.
This commit is contained in:
13
library/windows/command.ps1
Normal file
13
library/windows/command.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
#!powershell
|
||||
# WANT_JSON
|
||||
|
||||
If ($args.Length -gt 0)
|
||||
{
|
||||
$params = Get-Content $args[0] | ConvertFrom-Json;
|
||||
}
|
||||
|
||||
$data = 'FIXME';
|
||||
|
||||
$result = '{}' | ConvertFrom-Json;
|
||||
$result | Add-Member -MemberType NoteProperty -Name fixme -Value $data;
|
||||
echo $result | ConvertTo-Json;
|
||||
Reference in New Issue
Block a user