Skip to content

Commit 3aafad2

Browse files
committed
Ease up on newline use
1 parent f2bc285 commit 3aafad2

File tree

13 files changed

+19
-19
lines changed

13 files changed

+19
-19
lines changed

src/commands/audit-log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function setupCommand(
9999
if (cli.input.length < 1) {
100100
showHelp = true
101101
console.error(
102-
`${chalk.white.bgRed('Input error')}: Please provide an organization slug\n`
102+
`${chalk.white.bgRed('Input error')}: Please provide an organization slug.`
103103
)
104104
}
105105
if (showHelp) {

src/commands/dependencies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,5 @@ async function searchDeps({
145145
]
146146
}
147147

148-
console.log(`${chalkTable(options, result.data.rows)}\n`)
148+
console.log(chalkTable(options, result.data.rows))
149149
}

src/commands/diff-scan/get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ async function getDiffScan(
144144
if (!response.ok) {
145145
spinner.stop()
146146
const err = await handleAPIError(response.status)
147-
console.error(`${chalk.bgRed.white(response.statusText)}: ${err}\n`)
147+
console.error(`${chalk.bgRed.white(response.statusText)}: ${err}`)
148148
return
149149
}
150150

src/commands/info.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export const info: CliSubcommand = {
3333
if (commandContext) {
3434
const spinnerText =
3535
commandContext.pkgVersion === 'latest'
36-
? `Looking up data for the latest version of ${commandContext.pkgName}\n`
37-
: `Looking up data for version ${commandContext.pkgVersion} of ${commandContext.pkgName}\n`
36+
? `Looking up data for the latest version of ${commandContext.pkgName}`
37+
: `Looking up data for version ${commandContext.pkgVersion} of ${commandContext.pkgName}`
3838
const spinner = ora(spinnerText).start()
3939
const packageData = await fetchPackageData(
4040
commandContext.pkgName,

src/commands/repos/create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ function setupCommand(
114114
if (!orgSlug) {
115115
showHelp = true
116116
console.error(
117-
`${chalk.white.bgRed('Input error')}: Please provide an organization slug\n`
117+
`${chalk.white.bgRed('Input error')}: Please provide an organization slug.`
118118
)
119119
} else if (!repoName) {
120120
showHelp = true
121121
console.error(
122-
`${chalk.white.bgRed('Input error')}: Repository name is required.\n`
122+
`${chalk.white.bgRed('Input error')}: Repository name is required.`
123123
)
124124
}
125125
if (showHelp) {

src/commands/repos/delete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function setupCommand(
6363
if (!orgSlug || !repoName) {
6464
showHelp = true
6565
console.error(
66-
`${chalk.white.bgRed('Input error')}: Please provide an organization slug and repository slug\n`
66+
`${chalk.white.bgRed('Input error')}: Please provide an organization slug and repository slug.`
6767
)
6868
}
6969
if (showHelp) {

src/commands/repos/list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function setupCommand(
106106
if (!cli.input[0]) {
107107
showHelp = true
108108
console.error(
109-
`${chalk.white.bgRed('Input error')}: Please provide an organization slug\n`
109+
`${chalk.white.bgRed('Input error')}: Please provide an organization slug.`
110110
)
111111
}
112112
if (showHelp) {
@@ -154,5 +154,5 @@ async function listOrgRepos(
154154
]
155155
}
156156

157-
console.log(`${chalkTable(options, result.data.results)}\n`)
157+
console.log(chalkTable(options, result.data.results))
158158
}

src/commands/repos/update.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ function setupCommand(
115115
if (!orgSlug) {
116116
showHelp = true
117117
console.error(
118-
`${chalk.white.bgRed('Input error')}: Please provide an organization slug and repository name\n`
118+
`${chalk.white.bgRed('Input error')}: Please provide an organization slug and repository name.`
119119
)
120120
} else if (!repoName) {
121121
showHelp = true
122122
console.error(
123-
`${chalk.white.bgRed('Input error')}: Repository name is required.\n`
123+
`${chalk.white.bgRed('Input error')}: Repository name is required.`
124124
)
125125
}
126126
if (showHelp) {

src/commands/repos/view.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function setupCommand(
7676
if (!cli.input[0]) {
7777
showHelp = true
7878
console.error(
79-
`${chalk.white.bgRed('Input error')}: Please provide an organization slug and repository name\n`
79+
`${chalk.white.bgRed('Input error')}: Please provide an organization slug and repository name.`
8080
)
8181
}
8282
if (showHelp) {
@@ -123,5 +123,5 @@ async function viewRepository(
123123
]
124124
}
125125

126-
console.log(`${chalkTable(options, [result.data])}\n`)
126+
console.log(chalkTable(options, [result.data]))
127127
}

src/commands/scan/delete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function setupCommand(
7474
if (cli.input.length < 2) {
7575
showHelp = true
7676
console.error(
77-
`${chalk.white.bgRed('Input error')}: Please specify an organization slug and a scan ID.\n`
77+
`${chalk.white.bgRed('Input error')}: Please specify an organization slug and a scan ID.`
7878
)
7979
}
8080
if (showHelp) {

0 commit comments

Comments
 (0)