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
{{ message }}
This repository was archived by the owner on Sep 5, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: cmd/eom/execonmcode.go
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@ package main
2
2
3
3
import (
4
4
"flag"
5
+
"fmt"
5
6
"log"
6
7
"os"
7
8
"strings"
@@ -12,7 +13,7 @@ import (
12
13
)
13
14
14
15
const (
15
-
version="5.1.1"
16
+
version="5.1.2"
16
17
)
17
18
18
19
funcmain() {
@@ -25,13 +26,14 @@ func main() {
25
26
flag.Var(&s.Commands, "command", "Command to execute. This can be specified multiple times.")
26
27
flag.BoolVar(&s.NoFlush, "noFlush", false, "Do not flush the code channel before executing the associated command")
27
28
flag.BoolVar(&s.ExecAsync, "execAsync", false, "Run command to execute async and return success to DCS immediately")
29
+
flag.BoolVar(&s.ReturnOutput, "returnOutput", false, "Return the output of the command back to DCS. Use with care. Cannot be combined with -execAsync.")
0 commit comments