mirror of
https://github.com/nushell/nushell.git
synced 2025-04-23 20:58:19 +02:00
This addresses color issue; Yeees just got forgotten it :( As far as I understand an acceptance test can't be created because ansi got stripped in `nu!`. (for future regressions) But wrapping I need to take a deeper look. Maybe in an hour. cc: @fdncred
This commit is contained in:
parent
39edd7e080
commit
d75aa7ed1b
@ -1333,7 +1333,15 @@ fn test_expand_big_0() {
|
|||||||
"│ target │ {record 3 fields} │",
|
"│ target │ {record 3 fields} │",
|
||||||
"│ dev-dependencies │ {record 9 fields} │",
|
"│ dev-dependencies │ {record 9 fields} │",
|
||||||
"│ features │ {record 8 fields} │",
|
"│ features │ {record 8 fields} │",
|
||||||
"│ bin │ [table 1 row] │",
|
"│ │ ╭───┬─────┬─────╮ │",
|
||||||
|
"│ bin │ │ # │ nam │ pat │ │",
|
||||||
|
"│ │ │ │ e │ h │ │",
|
||||||
|
"│ │ ├───┼─────┼─────┤ │",
|
||||||
|
"│ │ │ 0 │ nu │ src │ │",
|
||||||
|
"│ │ │ │ │ /ma │ │",
|
||||||
|
"│ │ │ │ │ in. │ │",
|
||||||
|
"│ │ │ │ │ rs │ │",
|
||||||
|
"│ │ ╰───┴─────┴─────╯ │",
|
||||||
"│ │ ╭───────────┬───╮ │",
|
"│ │ ╭───────────┬───╮ │",
|
||||||
"│ patch │ │ crates-io │ { │ │",
|
"│ patch │ │ crates-io │ { │ │",
|
||||||
"│ │ │ │ r │ │",
|
"│ │ │ │ r │ │",
|
||||||
@ -1352,7 +1360,16 @@ fn test_expand_big_0() {
|
|||||||
"│ │ │ │ d │ │",
|
"│ │ │ │ d │ │",
|
||||||
"│ │ │ │ } │ │",
|
"│ │ │ │ } │ │",
|
||||||
"│ │ ╰───────────┴───╯ │",
|
"│ │ ╰───────────┴───╯ │",
|
||||||
"│ bench │ [table 1 row] │",
|
"│ │ ╭───┬─────┬─────╮ │",
|
||||||
|
"│ bench │ │ # │ nam │ har │ │",
|
||||||
|
"│ │ │ │ e │ nes │ │",
|
||||||
|
"│ │ │ │ │ s │ │",
|
||||||
|
"│ │ ├───┼─────┼─────┤ │",
|
||||||
|
"│ │ │ 0 │ ben │ fal │ │",
|
||||||
|
"│ │ │ │ chm │ se │ │",
|
||||||
|
"│ │ │ │ ark │ │ │",
|
||||||
|
"│ │ │ │ s │ │ │",
|
||||||
|
"│ │ ╰───┴─────┴─────╯ │",
|
||||||
"╰──────────────────┴───────────────────╯",
|
"╰──────────────────┴───────────────────╯",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -1366,6 +1383,8 @@ fn table_expande_with_no_header_internally_0() {
|
|||||||
|
|
||||||
let actual = nu!(format!("{} | table --expand --width 141", nu_value.trim()));
|
let actual = nu!(format!("{} | table --expand --width 141", nu_value.trim()));
|
||||||
|
|
||||||
|
_print_lines(&actual.out, 141);
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
actual.out,
|
actual.out,
|
||||||
join_lines([
|
join_lines([
|
||||||
@ -1532,71 +1551,191 @@ fn table_expande_with_no_header_internally_0() {
|
|||||||
"│ │ │ │ │ │ ╰─────┴──────────╯ │ │ │",
|
"│ │ │ │ │ │ ╰─────┴──────────╯ │ │ │",
|
||||||
"│ │ │ │ │ display_output │ │ │ │",
|
"│ │ │ │ │ display_output │ │ │ │",
|
||||||
"│ │ │ │ ╰────────────────┴────────────────────╯ │ │",
|
"│ │ │ │ ╰────────────────┴────────────────────╯ │ │",
|
||||||
"│ │ │ │ ╭───┬───────────────────────────┬────────────────────────┬────────┬─────╮ │ │",
|
"│ │ │ │ ╭───┬───────────────────────────┬────────────────────────┬────────┬───┬─────╮ │ │",
|
||||||
"│ │ │ menus │ │ # │ name │ only_buffer_difference │ marker │ ... │ │ │",
|
"│ │ │ menus │ │ # │ name │ only_buffer_difference │ marker │ t │ ... │ │ │",
|
||||||
"│ │ │ │ ├───┼───────────────────────────┼────────────────────────┼────────┼─────┤ │ │",
|
"│ │ │ │ │ │ │ │ │ y │ │ │ │",
|
||||||
"│ │ │ │ │ 0 │ completion_menu │ false │ | │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ p │ │ │ │",
|
||||||
"│ │ │ │ │ 1 │ history_menu │ true │ ? │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ e │ │ │ │",
|
||||||
"│ │ │ │ │ 2 │ help_menu │ true │ ? │ ... │ │ │",
|
"│ │ │ │ ├───┼───────────────────────────┼────────────────────────┼────────┼───┼─────┤ │ │",
|
||||||
"│ │ │ │ │ 3 │ commands_menu │ false │ # │ ... │ │ │",
|
"│ │ │ │ │ 0 │ completion_menu │ false │ | │ { │ ... │ │ │",
|
||||||
"│ │ │ │ │ 4 │ vars_menu │ true │ # │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ r │ │ │ │",
|
||||||
"│ │ │ │ │ 5 │ commands_with_description │ true │ # │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ e │ │ │ │",
|
||||||
"│ │ │ │ ╰───┴───────────────────────────┴────────────────────────┴────────┴─────╯ │ │",
|
"│ │ │ │ │ │ │ │ │ c │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ o │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ r │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ d │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ 4 │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ f │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ i │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ e │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ l │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ d │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ s │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ } │ │ │ │",
|
||||||
|
"│ │ │ │ │ 1 │ history_menu │ true │ ? │ { │ ... │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ r │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ e │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ c │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ o │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ r │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ d │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ 2 │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ f │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ i │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ e │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ l │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ d │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ s │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ } │ │ │ │",
|
||||||
|
"│ │ │ │ │ 2 │ help_menu │ true │ ? │ { │ ... │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ r │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ e │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ c │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ o │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ r │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ d │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ 6 │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ f │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ i │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ e │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ l │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ d │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ s │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ } │ │ │ │",
|
||||||
|
"│ │ │ │ │ 3 │ commands_menu │ false │ # │ { │ ... │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ r │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ e │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ c │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ o │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ r │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ d │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ 4 │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ f │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ i │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ e │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ l │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ d │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ s │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ } │ │ │ │",
|
||||||
|
"│ │ │ │ │ 4 │ vars_menu │ true │ # │ { │ ... │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ r │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ e │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ c │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ o │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ r │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ d │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ 2 │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ f │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ i │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ e │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ l │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ d │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ s │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ } │ │ │ │",
|
||||||
|
"│ │ │ │ │ 5 │ commands_with_description │ true │ # │ { │ ... │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ r │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ e │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ c │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ o │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ r │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ d │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ 6 │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ f │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ i │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ e │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ l │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ d │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ s │ │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ } │ │ │ │",
|
||||||
|
"│ │ │ │ ╰───┴───────────────────────────┴────────────────────────┴────────┴───┴─────╯ │ │",
|
||||||
"│ │ │ │ ╭────┬───────────────────────────┬──────────┬─────────┬───────────────┬─────╮ │ │",
|
"│ │ │ │ ╭────┬───────────────────────────┬──────────┬─────────┬───────────────┬─────╮ │ │",
|
||||||
"│ │ │ keybindings │ │ # │ name │ modifier │ keycode │ mode │ ... │ │ │",
|
"│ │ │ keybindings │ │ # │ name │ modifier │ keycode │ mode │ eve │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ nt │ │ │",
|
||||||
"│ │ │ │ ├────┼───────────────────────────┼──────────┼─────────┼───────────────┼─────┤ │ │",
|
"│ │ │ │ ├────┼───────────────────────────┼──────────┼─────────┼───────────────┼─────┤ │ │",
|
||||||
"│ │ │ │ │ 0 │ completion_menu │ none │ tab │ ╭───┬───────╮ │ ... │ │ │",
|
"│ │ │ │ │ 0 │ completion_menu │ none │ tab │ ╭───┬───────╮ │ {re │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ cor │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ d 1 │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ fi │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ eld │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ } │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
||||||
"│ │ │ │ │ 1 │ completion_previous │ shift │ backtab │ ╭───┬───────╮ │ ... │ │ │",
|
"│ │ │ │ │ 1 │ completion_previous │ shift │ backtab │ ╭───┬───────╮ │ {re │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ cor │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ d 1 │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ fi │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ eld │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ } │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
||||||
"│ │ │ │ │ 2 │ history_menu │ control │ char_r │ emacs │ ... │ │ │",
|
"│ │ │ │ │ 2 │ history_menu │ control │ char_r │ emacs │ {re │ │ │",
|
||||||
"│ │ │ │ │ 3 │ next_page │ control │ char_x │ emacs │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ cor │ │ │",
|
||||||
"│ │ │ │ │ 4 │ undo_or_previous_page │ control │ char_z │ emacs │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ d 2 │ │ │",
|
||||||
"│ │ │ │ │ 5 │ yank │ control │ char_y │ emacs │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
"│ │ │ │ │ 6 │ unix-line-discard │ control │ char_u │ ╭───┬───────╮ │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ s} │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ │ │ │",
|
"│ │ │ │ │ 3 │ next_page │ control │ char_x │ emacs │ {re │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ cor │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ d 1 │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ } │ │ │",
|
||||||
|
"│ │ │ │ │ 4 │ undo_or_previous_page │ control │ char_z │ emacs │ {re │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ cor │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ d 1 │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ } │ │ │",
|
||||||
|
"│ │ │ │ │ 5 │ yank │ control │ char_y │ emacs │ {re │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ cor │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ d 1 │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ } │ │ │",
|
||||||
|
"│ │ │ │ │ 6 │ unix-line-discard │ control │ char_u │ ╭───┬───────╮ │ {re │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ cor │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ d 1 │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ fi │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ eld │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ } │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
||||||
"│ │ │ │ │ 7 │ kill-line │ control │ char_k │ ╭───┬───────╮ │ ... │ │ │",
|
"│ │ │ │ │ 7 │ kill-line │ control │ char_k │ ╭───┬───────╮ │ {re │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ cor │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ d 1 │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ fi │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ eld │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ } │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
||||||
"│ │ │ │ │ 8 │ commands_menu │ control │ char_t │ ╭───┬───────╮ │ ... │ │ │",
|
"│ │ │ │ │ 8 │ commands_menu │ control │ char_t │ ╭───┬───────╮ │ {re │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ cor │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ d 2 │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ fi │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ eld │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ s} │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
||||||
"│ │ │ │ │ 9 │ vars_menu │ alt │ char_o │ ╭───┬───────╮ │ ... │ │ │",
|
"│ │ │ │ │ 9 │ vars_menu │ alt │ char_o │ ╭───┬───────╮ │ {re │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ cor │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ d 2 │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ fi │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ eld │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ s} │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
||||||
"│ │ │ │ │ 10 │ commands_with_description │ control │ char_s │ ╭───┬───────╮ │ ... │ │ │",
|
"│ │ │ │ │ 10 │ commands_with_description │ control │ char_s │ ╭───┬───────╮ │ {re │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 0 │ emacs │ │ cor │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 1 │ vi_no │ │ d 2 │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ │ rmal │ │ fi │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ 2 │ vi_in │ │ eld │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ │ sert │ │ s} │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ ╰───┴───────╯ │ │ │ │",
|
||||||
"│ │ │ │ ╰────┴───────────────────────────┴──────────┴─────────┴───────────────┴─────╯ │ │",
|
"│ │ │ │ ╰────┴───────────────────────────┴──────────┴─────────┴───────────────┴─────╯ │ │",
|
||||||
"│ │ ╰──────────────────────────────────┴───────────────────────────────────────────────────────────────────────────────╯ │",
|
"│ │ ╰──────────────────────────────────┴───────────────────────────────────────────────────────────────────────────────╯ │",
|
||||||
@ -1611,6 +1750,8 @@ fn table_expande_with_no_header_internally_1() {
|
|||||||
|
|
||||||
let actual = nu!(format!("{} | table --expand --width 136", nu_value.trim()));
|
let actual = nu!(format!("{} | table --expand --width 136", nu_value.trim()));
|
||||||
|
|
||||||
|
_print_lines(&actual.out, 136);
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
actual.out,
|
actual.out,
|
||||||
join_lines([
|
join_lines([
|
||||||
@ -1777,37 +1918,87 @@ fn table_expande_with_no_header_internally_1() {
|
|||||||
"│ │ │ │ │ │ ╰─────┴──────────╯ │ │ │",
|
"│ │ │ │ │ │ ╰─────┴──────────╯ │ │ │",
|
||||||
"│ │ │ │ │ display_output │ │ │ │",
|
"│ │ │ │ │ display_output │ │ │ │",
|
||||||
"│ │ │ │ ╰────────────────┴────────────────────╯ │ │",
|
"│ │ │ │ ╰────────────────┴────────────────────╯ │ │",
|
||||||
"│ │ │ │ ╭───┬───────────────────────────┬────────────────────────┬─────╮ │ │",
|
"│ │ │ │ ╭───┬───────────────────────────┬────────────────────────┬───────┬─────╮ │ │",
|
||||||
"│ │ │ menus │ │ # │ name │ only_buffer_difference │ ... │ │ │",
|
"│ │ │ menus │ │ # │ name │ only_buffer_difference │ marke │ ... │ │ │",
|
||||||
"│ │ │ │ ├───┼───────────────────────────┼────────────────────────┼─────┤ │ │",
|
"│ │ │ │ │ │ │ │ r │ │ │ │",
|
||||||
"│ │ │ │ │ 0 │ completion_menu │ false │ ... │ │ │",
|
"│ │ │ │ ├───┼───────────────────────────┼────────────────────────┼───────┼─────┤ │ │",
|
||||||
"│ │ │ │ │ 1 │ history_menu │ true │ ... │ │ │",
|
"│ │ │ │ │ 0 │ completion_menu │ false │ | │ ... │ │ │",
|
||||||
"│ │ │ │ │ 2 │ help_menu │ true │ ... │ │ │",
|
"│ │ │ │ │ 1 │ history_menu │ true │ ? │ ... │ │ │",
|
||||||
"│ │ │ │ │ 3 │ commands_menu │ false │ ... │ │ │",
|
"│ │ │ │ │ 2 │ help_menu │ true │ ? │ ... │ │ │",
|
||||||
"│ │ │ │ │ 4 │ vars_menu │ true │ ... │ │ │",
|
"│ │ │ │ │ 3 │ commands_menu │ false │ # │ ... │ │ │",
|
||||||
"│ │ │ │ │ 5 │ commands_with_description │ true │ ... │ │ │",
|
"│ │ │ │ │ 4 │ vars_menu │ true │ # │ ... │ │ │",
|
||||||
"│ │ │ │ ╰───┴───────────────────────────┴────────────────────────┴─────╯ │ │",
|
"│ │ │ │ │ 5 │ commands_with_description │ true │ # │ ... │ │ │",
|
||||||
|
"│ │ │ │ ╰───┴───────────────────────────┴────────────────────────┴───────┴─────╯ │ │",
|
||||||
"│ │ │ │ ╭────┬───────────────────────────┬──────────┬─────────┬──────────┬─────╮ │ │",
|
"│ │ │ │ ╭────┬───────────────────────────┬──────────┬─────────┬──────────┬─────╮ │ │",
|
||||||
"│ │ │ keybindings │ │ # │ name │ modifier │ keycode │ mode │ ... │ │ │",
|
"│ │ │ keybindings │ │ # │ name │ modifier │ keycode │ mode │ eve │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ nt │ │ │",
|
||||||
"│ │ │ │ ├────┼───────────────────────────┼──────────┼─────────┼──────────┼─────┤ │ │",
|
"│ │ │ │ ├────┼───────────────────────────┼──────────┼─────────┼──────────┼─────┤ │ │",
|
||||||
"│ │ │ │ │ 0 │ completion_menu │ none │ tab │ [list 3 │ ... │ │ │",
|
"│ │ │ │ │ 0 │ completion_menu │ none │ tab │ [list 3 │ {re │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ items] │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ items] │ cor │ │ │",
|
||||||
"│ │ │ │ │ 1 │ completion_previous │ shift │ backtab │ [list 3 │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ d 1 │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ items] │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
"│ │ │ │ │ 2 │ history_menu │ control │ char_r │ emacs │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
"│ │ │ │ │ 3 │ next_page │ control │ char_x │ emacs │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ } │ │ │",
|
||||||
"│ │ │ │ │ 4 │ undo_or_previous_page │ control │ char_z │ emacs │ ... │ │ │",
|
"│ │ │ │ │ 1 │ completion_previous │ shift │ backtab │ [list 3 │ {re │ │ │",
|
||||||
"│ │ │ │ │ 5 │ yank │ control │ char_y │ emacs │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ items] │ cor │ │ │",
|
||||||
"│ │ │ │ │ 6 │ unix-line-discard │ control │ char_u │ [list 3 │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ d 1 │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ items] │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
"│ │ │ │ │ 7 │ kill-line │ control │ char_k │ [list 3 │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ items] │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ } │ │ │",
|
||||||
"│ │ │ │ │ 8 │ commands_menu │ control │ char_t │ [list 3 │ ... │ │ │",
|
"│ │ │ │ │ 2 │ history_menu │ control │ char_r │ emacs │ {re │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ items] │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ cor │ │ │",
|
||||||
"│ │ │ │ │ 9 │ vars_menu │ alt │ char_o │ [list 3 │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ d 2 │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ items] │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
"│ │ │ │ │ 10 │ commands_with_description │ control │ char_s │ [list 3 │ ... │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
"│ │ │ │ │ │ │ │ │ items] │ │ │ │",
|
"│ │ │ │ │ │ │ │ │ │ s} │ │ │",
|
||||||
|
"│ │ │ │ │ 3 │ next_page │ control │ char_x │ emacs │ {re │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ cor │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ d 1 │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ } │ │ │",
|
||||||
|
"│ │ │ │ │ 4 │ undo_or_previous_page │ control │ char_z │ emacs │ {re │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ cor │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ d 1 │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ } │ │ │",
|
||||||
|
"│ │ │ │ │ 5 │ yank │ control │ char_y │ emacs │ {re │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ cor │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ d 1 │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ } │ │ │",
|
||||||
|
"│ │ │ │ │ 6 │ unix-line-discard │ control │ char_u │ [list 3 │ {re │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ items] │ cor │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ d 1 │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ } │ │ │",
|
||||||
|
"│ │ │ │ │ 7 │ kill-line │ control │ char_k │ [list 3 │ {re │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ items] │ cor │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ d 1 │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ } │ │ │",
|
||||||
|
"│ │ │ │ │ 8 │ commands_menu │ control │ char_t │ [list 3 │ {re │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ items] │ cor │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ d 2 │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ s} │ │ │",
|
||||||
|
"│ │ │ │ │ 9 │ vars_menu │ alt │ char_o │ [list 3 │ {re │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ items] │ cor │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ d 2 │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ s} │ │ │",
|
||||||
|
"│ │ │ │ │ 10 │ commands_with_description │ control │ char_s │ [list 3 │ {re │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ items] │ cor │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ d 2 │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ fi │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ eld │ │ │",
|
||||||
|
"│ │ │ │ │ │ │ │ │ │ s} │ │ │",
|
||||||
"│ │ │ │ ╰────┴───────────────────────────┴──────────┴─────────┴──────────┴─────╯ │ │",
|
"│ │ │ │ ╰────┴───────────────────────────┴──────────┴─────────┴──────────┴─────╯ │ │",
|
||||||
"│ │ ╰──────────────────────────────────┴──────────────────────────────────────────────────────────────────────────╯ │",
|
"│ │ ╰──────────────────────────────────┴──────────────────────────────────────────────────────────────────────────╯ │",
|
||||||
"╰────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯",
|
"╰────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯",
|
||||||
@ -2521,6 +2712,7 @@ fn table_theme_on_border_with_love() {
|
|||||||
fn table_theme_on_border_thin() {
|
fn table_theme_on_border_thin() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
create_theme_output("thin"),
|
create_theme_output("thin"),
|
||||||
|
// ["┌─#─┬a_looooooong_name┬─b─┬─c─┐│ 0 │ 1 │ 2 │ 3 │└─#─┴a_looooooong_name┴─b─┴─c─┘"]
|
||||||
[
|
[
|
||||||
"┌─#─┬─a─┬─b─┬───────c────────┐│ 0 │ 1 │ 2 │ 3 │├───┼───┼───┼────────────────┤│ 1 │ 4 │ 5 │ [list 3 items] │└───┴───┴───┴────────────────┘",
|
"┌─#─┬─a─┬─b─┬───────c────────┐│ 0 │ 1 │ 2 │ 3 │├───┼───┼───┼────────────────┤│ 1 │ 4 │ 5 │ [list 3 items] │└───┴───┴───┴────────────────┘",
|
||||||
"┌─#─┬─a─┬─b─┬───────c────────┐│ 0 │ 1 │ 2 │ 3 │├───┼───┼───┼────────────────┤│ 1 │ 4 │ 5 │ [list 3 items] │└─#─┴─a─┴─b─┴───────c────────┘",
|
"┌─#─┬─a─┬─b─┬───────c────────┐│ 0 │ 1 │ 2 │ 3 │├───┼───┼───┼────────────────┤│ 1 │ 4 │ 5 │ [list 3 items] │└─#─┴─a─┴─b─┴───────c────────┘",
|
||||||
@ -3149,3 +3341,21 @@ fn table_index_expand() {
|
|||||||
╰─────┴─────╯"
|
╰─────┴─────╯"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn table_expand_big_header() {
|
||||||
|
let actual = nu!("
|
||||||
|
let column_name = (('' | fill -c 'a' --width 81))
|
||||||
|
[{ $column_name: 'contents' }] | table -e --width=80
|
||||||
|
");
|
||||||
|
|
||||||
|
assert_eq!(
|
||||||
|
actual.out,
|
||||||
|
"╭───┬──────────────────────────────────────────────────────────────────────────╮\
|
||||||
|
│ # │ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa │\
|
||||||
|
│ │ aaaaaaaaa │\
|
||||||
|
├───┼──────────────────────────────────────────────────────────────────────────┤\
|
||||||
|
│ 0 │ contents │\
|
||||||
|
╰───┴──────────────────────────────────────────────────────────────────────────╯"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -240,7 +240,7 @@ fn expand_list(input: &[Value], cfg: Cfg<'_>) -> TableResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let mut available = available_width - pad_space;
|
let mut available = available_width - pad_space;
|
||||||
let mut column_width = string_width(&header);
|
let mut column_width = 0;
|
||||||
|
|
||||||
if !is_last_column {
|
if !is_last_column {
|
||||||
// we need to make sure that we have a space for a next column if we use available width
|
// we need to make sure that we have a space for a next column if we use available width
|
||||||
@ -293,9 +293,18 @@ fn expand_list(input: &[Value], cfg: Cfg<'_>) -> TableResult {
|
|||||||
column_rows = column_rows.saturating_add(cell.size);
|
column_rows = column_rows.saturating_add(cell.size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let mut head_width = string_width(&header);
|
||||||
|
let mut header = header;
|
||||||
|
if head_width > available {
|
||||||
|
header = wrap_text(&header, available, cfg.opts.config);
|
||||||
|
head_width = available;
|
||||||
|
}
|
||||||
|
|
||||||
let head_cell = NuRecordsValue::new(header);
|
let head_cell = NuRecordsValue::new(header);
|
||||||
data[0].push(head_cell);
|
data[0].push(head_cell);
|
||||||
|
|
||||||
|
column_width = max(column_width, head_width);
|
||||||
|
|
||||||
if column_width > available {
|
if column_width > available {
|
||||||
// remove the column we just inserted
|
// remove the column we just inserted
|
||||||
for row in &mut data {
|
for row in &mut data {
|
||||||
|
@ -31,6 +31,27 @@ pub fn string_wrap(text: &str, width: usize, keep_words: bool) -> String {
|
|||||||
Wrap::wrap(text, width, keep_words)
|
Wrap::wrap(text, width, keep_words)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn string_expand(text: &str, width: usize) -> String {
|
||||||
|
use std::{borrow::Cow, iter::repeat};
|
||||||
|
use tabled::grid::util::string::{get_line_width, get_lines};
|
||||||
|
|
||||||
|
get_lines(text)
|
||||||
|
.map(|line| {
|
||||||
|
let length = get_line_width(&line);
|
||||||
|
|
||||||
|
if length < width {
|
||||||
|
let mut line = line.into_owned();
|
||||||
|
let remain = width - length;
|
||||||
|
line.extend(repeat(' ').take(remain));
|
||||||
|
Cow::Owned(line)
|
||||||
|
} else {
|
||||||
|
line
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.collect::<Vec<_>>()
|
||||||
|
.join("\n")
|
||||||
|
}
|
||||||
|
|
||||||
pub fn string_truncate(text: &str, width: usize) -> String {
|
pub fn string_truncate(text: &str, width: usize) -> String {
|
||||||
let line = match text.lines().next() {
|
let line = match text.lines().next() {
|
||||||
Some(line) => line,
|
Some(line) => line,
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,7 @@
|
|||||||
[files]
|
[files]
|
||||||
extend-exclude = [
|
extend-exclude = [
|
||||||
".git/",
|
".git/",
|
||||||
|
"crates/nu-command/tests/commands/table.rs",
|
||||||
"crates/nu-cmd-extra/assets/228_themes.json",
|
"crates/nu-cmd-extra/assets/228_themes.json",
|
||||||
"tests/fixtures/formats/",
|
"tests/fixtures/formats/",
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user