File tree 1 file changed +4
-3
lines changed
packages/commandkit/src/app/handlers
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -109,10 +109,11 @@ export class AppCommandHandler {
109
109
}
110
110
111
111
public printBanner ( ) {
112
+ const uncategorized = crypto . randomUUID ( ) ;
112
113
// Group commands by category
113
114
const categorizedCommands = this . getCommandsArray ( ) . reduce (
114
115
( acc , cmd ) => {
115
- const category = cmd . command . category || ' uncategorized' ;
116
+ const category = cmd . command . category || uncategorized ;
116
117
acc [ category ] = acc [ category ] || [ ] ;
117
118
acc [ category ] . push ( cmd ) ;
118
119
return acc ;
@@ -136,15 +137,15 @@ export class AppCommandHandler {
136
137
const categoryPrefix = isLastCategory ? 'ββ' : 'ββ' ;
137
138
138
139
// Print category header (skip for uncategorized)
139
- if ( category !== ' uncategorized' ) {
140
+ if ( category !== uncategorized ) {
140
141
console . log ( colors . cyan ( `${ categoryPrefix } ${ colors . bold ( category ) } ` ) ) ;
141
142
}
142
143
143
144
// Print commands in this category
144
145
commands . forEach ( ( cmd , cmdIndex ) => {
145
146
const isLastCommand = cmdIndex === commands . length - 1 ;
146
147
const commandPrefix =
147
- category !== ' uncategorized'
148
+ category !== uncategorized
148
149
? ( isLastCategory ? ' ' : 'β ' ) + ( isLastCommand ? 'ββ' : 'ββ' )
149
150
: isLastCommand
150
151
? 'ββ'
You canβt perform that action at this time.
0 commit comments