| 123456789101112131415161718192021222324 |
- //go:build windows
- // +build windows
- package executor
- import (
- "context"
- "os"
- "os/exec"
- )
- func (e *Executor) Kill(execReq *InternalLogEntry) error {
- return execReq.Process.Kill()
- }
- func wrapCommandInShell(ctx context.Context, finalParsedCommand string) *exec.Cmd {
- winCodepage := os.Getenv("OT_WIN_FLAG_U")
- if winCodepage == "0" {
- return exec.CommandContext(ctx, "cmd", "/C", finalParsedCommand)
- } else {
- return exec.CommandContext(ctx, "cmd", "/u", "/C", finalParsedCommand)
- }
- }
|