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
--cwd working directory, defaults to process.cwd()
58
58
--defaultBranch Set the default branch of the repository to the branch of this full-scan. Should only need to be done once, for example for the "main" or "master" branch.
59
59
--help Print this help
60
+
--interactive Allow for interactive elements, asking for input. Use --no-interactive to prevent any input questions, defaulting them to cancel/no.
60
61
--json Output result as json
61
62
--markdown Output result as markdown
62
63
--pendingHead Designate this full-scan as the latest scan of a given branch. This must be set to have it show up in the dashboard.
'Set the default branch of the repository to the branch of this full-scan. Should only need to be done once, for example for the "main" or "master" branch.'
58
58
},
59
+
interactive: {
60
+
type: 'boolean',
61
+
default: true,
62
+
description:
63
+
'Allow for interactive elements, asking for input. Use --no-interactive to prevent any input questions, defaulting them to cancel/no.'
64
+
},
59
65
pendingHead: {
60
66
type: 'boolean',
61
67
default: true,
@@ -159,6 +165,7 @@ async function run(
159
165
cwd: cwdOverride,
160
166
defaultBranch,
161
167
dryRun,
168
+
interactive =true,
162
169
json,
163
170
markdown,
164
171
pendingHead,
@@ -175,6 +182,7 @@ async function run(
175
182
committers: string
176
183
defaultBranch: boolean
177
184
dryRun: boolean
185
+
interactive: boolean
178
186
json: boolean
179
187
markdown: boolean
180
188
pendingHead: boolean
@@ -202,7 +210,7 @@ async function run(
202
210
// the command without requiring user input, as a suggestion.
203
211
letupdatedInput=false
204
212
205
-
if(!targets.length&&!dryRun){
213
+
if(!targets.length&&!dryRun&&interactive){
206
214
constreceived=awaitsuggestTarget()
207
215
targets=received??[]
208
216
updatedInput=true
@@ -211,7 +219,7 @@ async function run(
211
219
// If the current cwd is unknown and is used as a repo slug anyways, we will
212
220
// first need to register the slug before we can use it.
213
221
// Only do suggestions with an apiToken and when not in dryRun mode
0 commit comments