Skip to content

Commit 36e4d69

Browse files
committed
fix(plugin-help): script name should not be dimmed
1 parent 833eb51 commit 36e4d69

3 files changed

Lines changed: 25 additions & 25 deletions

File tree

packages/clerc/test/__snapshots__/clerc.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`clerc > should install plugins 1`] = `
66
"test v0.0.0 - test
77
88
Usage
9-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
9+
$ test [2m<command>[22m [2m[flags][22m
1010
1111
Global Flags
1212
--version, -V Boolean Prints current version [default: false]
@@ -30,7 +30,7 @@ exports[`clerc > should install plugins 1`] = `
3030
"test v0.0.0 - test
3131
3232
Usage
33-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
33+
$ test [2m<command>[22m [2m[flags][22m
3434
3535
Global Flags
3636
--version, -V Boolean Prints current version [default: false]
@@ -54,7 +54,7 @@ exports[`clerc > should install plugins 1`] = `
5454
"test v0.0.0 - test
5555
5656
Usage
57-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
57+
$ test [2m<command>[22m [2m[flags][22m
5858
5959
Global Flags
6060
--version, -V Boolean Prints current version [default: false]

packages/plugin-help/src/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export class HelpRenderer {
163163
const { _scriptName } = this._cli;
164164
const command = this._command;
165165

166-
let usage = `$ ${yc.dim(_scriptName)}`;
166+
let usage = `$ ${_scriptName}`;
167167

168168
if (command) {
169169
if (command.name) {

packages/plugin-help/test/__snapshots__/plugin-help.test.ts.snap

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`plugin-help > grouping > should display subcommands 1`] = `
66
"test parent - Parent command
77
88
Usage
9-
$ [2mtest[22m parent [2m[flags][22m
9+
$ test parent [2m[flags][22m
1010
1111
Global Flags
1212
--help, -h Boolean Show help [default: false]
@@ -19,7 +19,7 @@ exports[`plugin-help > grouping > should display subcommands 1`] = `
1919
"test - Parent command
2020
2121
Usage
22-
$ [2mtest[22m [2m[flags][22m
22+
$ test [2m[flags][22m
2323
2424
Global Flags
2525
--help, -h Boolean Show help [default: false]",
@@ -33,7 +33,7 @@ exports[`plugin-help > grouping > should group command flags 1`] = `
3333
"test build - Build project
3434
3535
Usage
36-
$ [2mtest[22m build [2m[flags][22m
36+
$ test build [2m[flags][22m
3737
3838
Flags
3939
--output String Output directory
@@ -54,7 +54,7 @@ exports[`plugin-help > grouping > should group commands 1`] = `
5454
"test v0.0.0 - test
5555
5656
Usage
57-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
57+
$ test [2m<command>[22m [2m[flags][22m
5858
5959
Global Flags
6060
--help, -h Boolean Show help [default: false]
@@ -89,7 +89,7 @@ exports[`plugin-help > grouping > should group global flags 1`] = `
8989
"test v0.0.0 - test
9090
9191
Usage
92-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
92+
$ test [2m<command>[22m [2m[flags][22m
9393
9494
Global Flags
9595
--help, -h Boolean Show help [default: false]
@@ -121,7 +121,7 @@ exports[`plugin-help > grouping > should not add group headers when no groups de
121121
"test v0.0.0 - test
122122
123123
Usage
124-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
124+
$ test [2m<command>[22m [2m[flags][22m
125125
126126
Global Flags
127127
--help, -h Boolean Show help [default: false]
@@ -150,7 +150,7 @@ exports[`plugin-help > should format custom flag default with "display" property
150150
"test v0.0.0 - test
151151
152152
Usage
153-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
153+
$ test [2m<command>[22m [2m[flags][22m
154154
155155
Global Flags
156156
--help, -h Boolean Show help [default: false]
@@ -178,7 +178,7 @@ exports[`plugin-help > should format custom flag type with "display" property 1`
178178
"test v0.0.0 - test
179179
180180
Usage
181-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
181+
$ test [2m<command>[22m [2m[flags][22m
182182
183183
Global Flags
184184
--help, -h Boolean Show help [default: false]
@@ -206,7 +206,7 @@ exports[`plugin-help > should not show commands placeholder when no commands exi
206206
"test v0.0.0 - test
207207
208208
Usage
209-
$ [2mtest[22m [2m[flags][22m
209+
$ test [2m[flags][22m
210210
211211
Global Flags
212212
--help, -h Boolean Show help [default: false]
@@ -228,7 +228,7 @@ exports[`plugin-help > should not show commands placeholder when only registered
228228
"test
229229
230230
Usage
231-
$ [2mtest[22m [2m[flags][22m
231+
$ test [2m[flags][22m
232232
233233
Global Flags
234234
--help, -h Boolean Show help [default: false]",
@@ -242,7 +242,7 @@ exports[`plugin-help > should not show commands which set \`show\` to false 1`]
242242
"test v0.0.0 - test
243243
244244
Usage
245-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
245+
$ test [2m<command>[22m [2m[flags][22m
246246
247247
Global Flags
248248
--help, -h Boolean Show help [default: false]
@@ -269,7 +269,7 @@ exports[`plugin-help > should show --help 1`] = `
269269
"test v0.0.0 - test
270270
271271
Usage
272-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
272+
$ test [2m<command>[22m [2m[flags][22m
273273
274274
Global Flags
275275
--help, -h Boolean Show help [default: false]
@@ -320,7 +320,7 @@ exports[`plugin-help > should show help 1`] = `
320320
"test v0.0.0 - test
321321
322322
Usage
323-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
323+
$ test [2m<command>[22m [2m[flags][22m
324324
325325
Global Flags
326326
--help, -h Boolean Show help [default: false]
@@ -347,7 +347,7 @@ exports[`plugin-help > should show help when no command 1`] = `
347347
"test v0.0.0 - test
348348
349349
Usage
350-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
350+
$ test [2m<command>[22m [2m[flags][22m
351351
352352
Global Flags
353353
--help, -h Boolean Show help [default: false]
@@ -374,7 +374,7 @@ exports[`plugin-help > should show parameter description 1`] = `
374374
"test test - Test command
375375
376376
Usage
377-
$ [2mtest[22m test <param> [2m[flags][22m
377+
$ test test <param> [2m[flags][22m
378378
379379
Parameters
380380
<param> string Description for param
@@ -391,7 +391,7 @@ exports[`plugin-help > should show parameter types 1`] = `
391391
"test test - Test command
392392
393393
Usage
394-
$ [2mtest[22m test <param> <param2> [range] [regex] [2m[flags][22m
394+
$ test test <param> <param2> [range] [regex] [2m[flags][22m
395395
396396
Parameters
397397
<param> string
@@ -411,7 +411,7 @@ exports[`plugin-help > should support flag shorthand 1`] = `
411411
"test test - Test command
412412
413413
Usage
414-
$ [2mtest[22m test [2m[flags][22m
414+
$ test test [2m[flags][22m
415415
416416
Flags
417417
--verbose Boolean
@@ -428,7 +428,7 @@ exports[`plugin-help > should support no description 1`] = `
428428
"test test
429429
430430
Usage
431-
$ [2mtest[22m test <param> [2m[flags][22m
431+
$ test test <param> [2m[flags][22m
432432
433433
Parameters
434434
<param> string
@@ -449,7 +449,7 @@ exports[`plugin-help > should support optional description for command 1`] = `
449449
"test v0.0.0 - test
450450
451451
Usage
452-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
452+
$ test [2m<command>[22m [2m[flags][22m
453453
454454
Global Flags
455455
--help, -h Boolean Show help [default: false]
@@ -477,7 +477,7 @@ exports[`plugin-help > should support optional description for global flag 1`] =
477477
"test v0.0.0 - test
478478
479479
Usage
480-
$ [2mtest[22m [2m<command>[22m [2m[flags][22m
480+
$ test [2m<command>[22m [2m[flags][22m
481481
482482
Global Flags
483483
--help, -h Boolean Show help [default: false]
@@ -505,7 +505,7 @@ exports[`plugin-help > should use [] as placeholder when root command exists 1`]
505505
"test v0.0.0 - test
506506
507507
Usage
508-
$ [2mtest[22m [2m[command][22m [2m[flags][22m
508+
$ test [2m[command][22m [2m[flags][22m
509509
510510
Global Flags
511511
--help, -h Boolean Show help [default: false]

0 commit comments

Comments
 (0)