File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,11 @@ func New(opts Options) (*ConsoleProcess, error) {
70
70
// This makes the behavior more consistent, as it isolates the signal handling from
71
71
// the parent processes, which are dependent on the test environment.
72
72
cmd .SysProcAttr = osutils .SysProcAttrForNewProcessGroup ()
73
- fmt .Printf ("Spawning '%s' from %s\n " , osutils .CmdString (cmd ), opts .WorkDirectory )
73
+ cmdString := osutils .CmdString (cmd )
74
+ if opts .HideCmdLine {
75
+ cmdString = "*****"
76
+ }
77
+ fmt .Printf ("Spawning '%s' from %s\n " , cmdString , opts .WorkDirectory )
74
78
75
79
conOpts := []expect.ConsoleOpt {
76
80
expect .WithDefaultTimeout (opts .DefaultTimeout ),
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ type Options struct {
27
27
ObserveExpect expect.ExpectObserver
28
28
CmdName string
29
29
Args []string
30
+ HideCmdLine bool
30
31
ExtraOpts []expect.ConsoleOpt
31
32
}
32
33
You can’t perform that action at this time.
0 commit comments