Просмотр исходного кода

deps(test): test PR to run actions with uuterm-grid

PThorpe92 2 лет назад
Родитель
Сommit
5bba610047
4 измененных файлов с 9 добавлено и 7 удалено
  1. 4 5
      Cargo.lock
  2. 2 2
      Cargo.toml
  3. 1 0
      src/output/grid.rs
  4. 2 0
      src/output/grid_details.rs

+ 4 - 5
Cargo.lock

@@ -1068,9 +1068,8 @@ dependencies = [
 
 [[package]]
 name = "term_grid"
-version = "0.1.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "230d3e804faaed5a39b08319efb797783df2fd9671b39b7596490cb486d702cf"
+version = "0.2.0"
+source = "git+https://github.com/uutils/uutils-term-grid.git#595b97267650ad388f39fae9973d5af8741a04ad"
 dependencies = [
  "unicode-width",
 ]
@@ -1200,9 +1199,9 @@ dependencies = [
 
 [[package]]
 name = "unicode-width"
-version = "0.1.10"
+version = "0.1.11"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b"
+checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85"
 
 [[package]]
 name = "url"

+ 2 - 2
Cargo.toml

@@ -84,10 +84,10 @@ number_prefix = "0.4"
 percent-encoding = "2.3.0"
 phf = { version = "0.11.2", features = ["macros"] }
 scoped_threadpool = "0.1"
-term_grid = "0.1"
+term_grid = { git = "https://github.com/uutils/uutils-term-grid.git" }
 terminal_size = "0.3.0"
 timeago = { version = "0.4.2", default-features = false }
-unicode-width = "0.1"
+unicode-width = "0.1.11"
 zoneinfo_compiled = "0.5.1"
 
 [dependencies.git2]

+ 1 - 0
src/output/grid.rs

@@ -57,6 +57,7 @@ impl<'a> Render<'a> {
                 // with hyperlink escape sequences,
                 // the actual *contents.width() is larger than actually needed, so we take only the filename
                 width,
+                alignment: tg::Alignment::Left,
             });
         }
 

+ 2 - 0
src/output/grid_details.rs

@@ -318,6 +318,7 @@ impl<'a> Render<'a> {
                         let cell = grid::Cell {
                             contents: ANSIStrings(&column[row].contents).to_string(),
                             width: *column[row].width,
+                            alignment: grid::Alignment::Left,
                         };
 
                         grid.add(cell);
@@ -330,6 +331,7 @@ impl<'a> Render<'a> {
                     let cell = grid::Cell {
                         contents: ANSIStrings(&cell.contents).to_string(),
                         width: *cell.width,
+                        alignment: grid::Alignment::Left,
                     };
 
                     grid.add(cell);