File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 22#![ allow( clippy:: use_self, clippy:: missing_const_for_fn) ] // not 100% reliable
33
44use clap:: Parser ;
5+ use clap:: builder:: Styles ;
6+ use clap:: builder:: styling:: { AnsiColor , Effects } ;
57use eyre:: Result ;
68
79use command:: AtuinCmd ;
@@ -26,13 +28,20 @@ static HELP_TEMPLATE: &str = "\
2628
2729{all-args}{after-help}" ;
2830
31+ const STYLES : Styles = Styles :: styled ( )
32+ . header ( AnsiColor :: Yellow . on_default ( ) . effects ( Effects :: BOLD ) )
33+ . usage ( AnsiColor :: Green . on_default ( ) . effects ( Effects :: BOLD ) )
34+ . literal ( AnsiColor :: Green . on_default ( ) . effects ( Effects :: BOLD ) )
35+ . placeholder ( AnsiColor :: Green . on_default ( ) ) ;
36+
2937/// Magical shell history
3038#[ derive( Parser ) ]
3139#[ command(
3240 author = "Ellie Huxtable <[email protected] >" , 3341 version = VERSION ,
3442 long_version = LONG_VERSION ,
3543 help_template( HELP_TEMPLATE ) ,
44+ styles = STYLES ,
3645) ]
3746struct Atuin {
3847 #[ command( subcommand) ]
You can’t perform that action at this time.
0 commit comments