Documentation ¶
Index ¶
- Constants
- func WrapCommand(command string, parameters map[string]interface{}, depth int, noColor bool) (string, error)
- type PwshExecConfig
- func (o *PwshExecConfig) Execute(ctx context.Context, command string) ([]byte, error)
- func (o *PwshExecConfig) ExecuteRaw(ctx context.Context, command string) ([]byte, error)
- func (o *PwshExecConfig) ExecuteWithParamsFile(ctx context.Context, command string, parameters map[string]interface{}) ([]byte, error)
Constants ¶
View Source
const (
PowerShellExe = "pwsh"
)
https://stackoverflow.com/questions/65331558/how-to-call-powershell-from-go-faster https://blog.kowalczyk.info/article/wOYk/advanced-command-execution-in-go-with-osexec.html
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PwshExecConfig ¶
func NewPwshExecConfig ¶
func NewPwshExecConfig() PwshExecConfig
func (*PwshExecConfig) ExecuteRaw ¶
func (*PwshExecConfig) ExecuteWithParamsFile ¶
Click to show internal directories.
Click to hide internal directories.