We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ab2989 commit 89031aeCopy full SHA for 89031ae
optionsOutput.go
@@ -85,3 +85,10 @@ func WithNoStylesheet() Option {
85
s.args = append(s.args, "--no-stylesheet")
86
}
87
88
+
89
+// WithNonInteractive disable runtime interactions via keyboard
90
+func WithNonInteractive() Option {
91
+ return func(s *Scanner) {
92
+ s.args = append(s.Args(), "--noninteractive")
93
+ }
94
+}
optionsOutput_test.go
@@ -138,6 +138,17 @@ func TestOutput(t *testing.T) {
138
"--no-stylesheet",
139
},
140
141
+ {
142
+ description: "disable interactions",
143
144
+ options: []Option{
145
+ WithNonInteractive(),
146
+ },
147
148
+ expectedArgs: []string{
149
+ "--noninteractive",
150
151
152
153
154
for _, test := range tests {
0 commit comments