File tree Expand file tree Collapse file tree 13 files changed +19
-19
lines changed Expand file tree Collapse file tree 13 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ function setupCommand(
99
99
if ( cli . input . length < 1 ) {
100
100
showHelp = true
101
101
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. `
103
103
)
104
104
}
105
105
if ( showHelp ) {
Original file line number Diff line number Diff line change @@ -145,5 +145,5 @@ async function searchDeps({
145
145
]
146
146
}
147
147
148
- console . log ( ` ${ chalkTable ( options , result . data . rows ) } \n` )
148
+ console . log ( chalkTable ( options , result . data . rows ) )
149
149
}
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ async function getDiffScan(
144
144
if ( ! response . ok ) {
145
145
spinner . stop ( )
146
146
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 } ` )
148
148
return
149
149
}
150
150
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ export const info: CliSubcommand = {
33
33
if ( commandContext ) {
34
34
const spinnerText =
35
35
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 } `
38
38
const spinner = ora ( spinnerText ) . start ( )
39
39
const packageData = await fetchPackageData (
40
40
commandContext . pkgName ,
Original file line number Diff line number Diff line change @@ -114,12 +114,12 @@ function setupCommand(
114
114
if ( ! orgSlug ) {
115
115
showHelp = true
116
116
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. `
118
118
)
119
119
} else if ( ! repoName ) {
120
120
showHelp = true
121
121
console . error (
122
- `${ chalk . white . bgRed ( 'Input error' ) } : Repository name is required.\n `
122
+ `${ chalk . white . bgRed ( 'Input error' ) } : Repository name is required.`
123
123
)
124
124
}
125
125
if ( showHelp ) {
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function setupCommand(
63
63
if ( ! orgSlug || ! repoName ) {
64
64
showHelp = true
65
65
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. `
67
67
)
68
68
}
69
69
if ( showHelp ) {
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ function setupCommand(
106
106
if ( ! cli . input [ 0 ] ) {
107
107
showHelp = true
108
108
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. `
110
110
)
111
111
}
112
112
if ( showHelp ) {
@@ -154,5 +154,5 @@ async function listOrgRepos(
154
154
]
155
155
}
156
156
157
- console . log ( ` ${ chalkTable ( options , result . data . results ) } \n` )
157
+ console . log ( chalkTable ( options , result . data . results ) )
158
158
}
Original file line number Diff line number Diff line change @@ -115,12 +115,12 @@ function setupCommand(
115
115
if ( ! orgSlug ) {
116
116
showHelp = true
117
117
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. `
119
119
)
120
120
} else if ( ! repoName ) {
121
121
showHelp = true
122
122
console . error (
123
- `${ chalk . white . bgRed ( 'Input error' ) } : Repository name is required.\n `
123
+ `${ chalk . white . bgRed ( 'Input error' ) } : Repository name is required.`
124
124
)
125
125
}
126
126
if ( showHelp ) {
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ function setupCommand(
76
76
if ( ! cli . input [ 0 ] ) {
77
77
showHelp = true
78
78
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. `
80
80
)
81
81
}
82
82
if ( showHelp ) {
@@ -123,5 +123,5 @@ async function viewRepository(
123
123
]
124
124
}
125
125
126
- console . log ( ` ${ chalkTable ( options , [ result . data ] ) } \n` )
126
+ console . log ( chalkTable ( options , [ result . data ] ) )
127
127
}
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ function setupCommand(
74
74
if ( cli . input . length < 2 ) {
75
75
showHelp = true
76
76
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.`
78
78
)
79
79
}
80
80
if ( showHelp ) {
You can’t perform that action at this time.
0 commit comments