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

This commit is contained in:
PThorpe92 2023-09-24 16:32:20 -04:00
parent 7f70c2a71f
commit 5bba610047
No known key found for this signature in database
GPG key ID: 66DB3FBACBDD05CC
4 changed files with 9 additions and 7 deletions

9
Cargo.lock generated
View file

@ -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"

View file

@ -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]

View file

@ -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,
});
}

View file

@ -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);