File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/@ionic/cli-utils/src/lib Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ const IONIC_LOGO = String.raw`
14
14
15
15
type Decoration = [ string , string ] ;
16
16
17
+ const OPTION_DECORATIONS : Decoration [ ] = [
18
+ [ OptionGroup . Beta , chalk . red . bold ( '(beta)' ) ] ,
19
+ [ OptionGroup . Deprecated , chalk . yellow . bold ( '(deprecated)' ) ] ,
20
+ [ OptionGroup . Experimental , chalk . red . bold ( '(experimental)' ) ] ,
21
+ ] ;
22
+
17
23
const COMMAND_DECORATIONS : Decoration [ ] = [
18
24
[ CommandGroup . Beta , chalk . red . bold ( '(beta)' ) ] ,
19
25
[ CommandGroup . Deprecated , chalk . yellow . bold ( '(deprecated)' ) ] ,
@@ -118,7 +124,7 @@ export class CommandStringHelpFormatter extends BaseCommandStringHelpFormatter<I
118
124
}
119
125
120
126
async formatBeforeOptionSummary ( opt : CommandMetadataOption ) : Promise < string > {
121
- return opt . hint ? `${ opt . hint } ` : '' ;
127
+ return ( opt . hint ? `${ opt . hint } ` : '' ) + formatGroupDecorations ( OPTION_DECORATIONS , opt . groups ) ;
122
128
}
123
129
}
124
130
You can’t perform that action at this time.
0 commit comments