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
`${colors.bgRed(colors.white('Input error'))}: Please provide the required fields:\n
99
-
- Scope must be "repo" or "org" ${badScope ? colors.red('(bad!)') : colors.green('(ok)')}\n
100
-
- The time filter must either be 7, 30 or 90 ${badTime ? colors.red('(bad!)') : colors.green('(ok)')}\n
101
-
${scope==='repo' ? `- Repository name using --repo when scope is "repo" ${badRepo ? colors.red('(bad!)') : colors.green('(ok)')}` : ''}\n
102
-
${badFlags ? `- The \`--json\` and \`--markdown\` flags can not be used at the same time ${badFlags ? colors.red('(bad!)') : colors.green('(ok)')}` : ''}\n
103
-
${badFile ? `- The \`--file\` flag is only valid when using \`--json\` or \`--markdown\` ${badFile ? colors.red('(bad!)') : colors.green('(ok)')}` : ''}\n
99
+
stripIndents`${colors.bgRed(colors.white('Input error'))}: Please provide the required fields:
100
+
101
+
- Scope must be "repo" or "org" ${badScope ? colors.red('(bad!)') : colors.green('(ok)')}
102
+
103
+
- The time filter must either be 7, 30 or 90 ${badTime ? colors.red('(bad!)') : colors.green('(ok)')}
104
+
105
+
${scope==='repo' ? `- Repository name using --repo when scope is "repo" ${badRepo ? colors.red('(bad!)') : colors.green('(ok)')}` : ''}
106
+
107
+
${badFlags ? `- The \`--json\` and \`--markdown\` flags can not be used at the same time ${badFlags ? colors.red('(bad!)') : colors.green('(ok)')}` : ''}
108
+
109
+
${badFile ? `- The \`--file\` flag is only valid when using \`--json\` or \`--markdown\` ${badFile ? colors.red('(bad!)') : colors.green('(ok)')}` : ''}
`${colors.bgRed(colors.white('Input error'))}: Please provide the required fields:\n
132
-
- The DIR arg is required ${!target ? colors.red('(missing!)') : target==='-' ? colors.red('(stdin is not supported)') : colors.green('(ok)')}\n
133
-
- Can only accept one DIR (make sure to escape spaces!) ${cli.input.length>1 ? colors.red(`(received ${cli.input.length}!)`) : colors.green('(ok)')}\n`
134
-
)
131
+
logger.error(stripIndents`${colors.bgRed(colors.white('Input error'))}: Please provide the required fields:
132
+
133
+
- The DIR arg is required ${!target ? colors.red('(missing!)') : target==='-' ? colors.red('(stdin is not supported)') : colors.green('(ok)')}
134
+
135
+
- Can only accept one DIR (make sure to escape spaces!) ${cli.input.length>1 ? colors.red(`(received ${cli.input.length}!)`) : colors.green('(ok)')}`)
`${colors.bgRed(colors.white('Input error'))}: Please provide the required fields:\n
137
-
- The DIR arg is required ${!target ? colors.red('(missing!)') : target==='-' ? colors.red('(stdin is not supported)') : colors.green('(ok)')}\n
138
-
- Can only accept one DIR (make sure to escape spaces!) ${cli.input.length>1 ? colors.red(`(received ${cli.input.length}!)`) : colors.green('(ok)')}\n`
137
+
stripIndents`${colors.bgRed(colors.white('Input error'))}: Please provide the required fields:
138
+
139
+
- The DIR arg is required ${!target ? colors.red('(missing!)') : target==='-' ? colors.red('(stdin is not supported)') : colors.green('(ok)')}
140
+
141
+
- Can only accept one DIR (make sure to escape spaces!) ${cli.input.length>1 ? colors.red(`(received ${cli.input.length}!)`) : colors.green('(ok)')}`
0 commit comments