Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCommand ¶
RunCommand executes a given powershell command.
When the command throws a powershell exception, RunCommand will return the exception message as error.
func RunCommandWithJsonResult ¶
RunCommandWithJsonResult executes a given powershell command. The command will be wrapped with ConvertTo-Json.
You can Wrap your command with @(<cmd>) to ensure that the returned json is an array
When the command throws a powershell exception, RunCommandf will return the exception message as error.
func RunCommandf ¶
RunCommandf executes a given powershell command. Command argument formats according to a format specifier (See fmt.Sprintf).
When the command throws a powershell exception, RunCommandf will return the exception message as error.
Types ¶
This section is empty.