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
Copy file name to clipboardExpand all lines: src/commands/scan/create.ts
+4-3
Original file line number
Diff line number
Diff line change
@@ -163,6 +163,7 @@ async function setupCommand(
163
163
})
164
164
}
165
165
)
166
+
166
167
constpackagePaths=awaitgetPackageFilesFullScans(
167
168
cwd,
168
169
cli.input,
@@ -172,9 +173,9 @@ async function setupCommand(
172
173
if(!repoName||!branchName||!packagePaths.length){
173
174
showHelp=true
174
175
console.error(`${colors.bgRed(colors.white('Input error'))}: Please provide the required fields:\n
175
-
- Repository name using --repo\n
176
-
- Branch name using --branch\n
177
-
- At least one file path (e.g. ./package.json)`)
176
+
- Repository name using --repo${!repoName ? colors.red('(missing!)') : colors.green('(ok)')}\n
177
+
- Branch name using --branch${!branchName ? colors.red('(missing!)') : colors.green('(ok)')}\n
178
+
- At least one file path (e.g. ./package.json)${!packagePaths.length ? colors.red('(missing or no matching/supported files found!)') : colors.green('(ok)')}`)
0 commit comments