File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -427,6 +427,8 @@ impl Subcommand {
427
427
}
428
428
429
429
fn list ( config : & Config , level : usize , justfile : & Justfile ) {
430
+ const MAX_WIDTH : usize = 50 ;
431
+
430
432
// Construct a target to alias map.
431
433
let mut recipe_aliases: BTreeMap < & str , Vec < & str > > = BTreeMap :: new ( ) ;
432
434
if !config. no_aliases {
@@ -460,13 +462,13 @@ impl Subcommand {
460
462
) ;
461
463
}
462
464
463
- if line_width <= 30 {
465
+ if line_width <= MAX_WIDTH {
464
466
line_widths. insert ( name, line_width) ;
465
467
}
466
468
}
467
469
}
468
470
469
- let max_line_width = cmp:: min ( line_widths. values ( ) . copied ( ) . max ( ) . unwrap_or ( 0 ) , 30 ) ;
471
+ let max_line_width = cmp:: min ( line_widths. values ( ) . copied ( ) . max ( ) . unwrap_or ( 0 ) , MAX_WIDTH ) ;
470
472
let doc_color = config. color . stdout ( ) . doc ( ) ;
471
473
472
474
if level == 0 {
Original file line number Diff line number Diff line change @@ -902,7 +902,7 @@ x a b='B ' c='C':
902
902
echo {{a}} {{b}} {{c}}
903
903
904
904
# something else
905
- this-recipe-is-very-very-very-important Z="\t z":
905
+ this-recipe-is-very-very-very-very-very-very-very-very- important Z="\t z":
906
906
907
907
# this recipe will not appear
908
908
_private-recipe:
@@ -911,7 +911,7 @@ _private-recipe:
911
911
stdout: r#"
912
912
Available recipes:
913
913
hello a b='B ' c='C' # this does a thing
914
- this-recipe-is-very-very-very-important Z="\t z" # something else
914
+ this-recipe-is-very-very-very-very-very-very-very-very- important Z="\t z" # something else
915
915
x a b='B ' c='C' # this does another thing
916
916
"# ,
917
917
}
You can’t perform that action at this time.
0 commit comments