Skip to content

Commit

Permalink
tui: Absorb the crossterm dep
Browse files Browse the repository at this point in the history
Signed-off-by: Ikey Doherty <ikey@serpentos.com>
  • Loading branch information
ikeycode committed Sep 19, 2023
1 parent b96c846 commit 999b154
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion moss/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ tui = { path = "../tui" }
bitflags.workspace = true
chrono.workspace = true
clap.workspace = true
crossterm.workspace = true
itertools.workspace = true
futures.workspace = true
log.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion moss/src/cli/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use std::path::PathBuf;

use clap::{ArgMatches, Command};
use crossterm::style::Stylize;
use futures::StreamExt;
use itertools::Itertools;
use thiserror::Error;
Expand All @@ -14,6 +13,7 @@ use moss::{
client::{self, Client},
package::Flags,
};
use tui::Stylize;

pub fn command() -> Command {
Command::new("list")
Expand Down
1 change: 1 addition & 0 deletions tui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
crossterm.workspace = true
futures.workspace = true
tokio.workspace = true
tokio-stream.workspace = true
Expand Down
1 change: 1 addition & 0 deletions tui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ mod reexport {

use ratatui::prelude::CrosstermBackend;
pub use ratatui::prelude::{Constraint, Direction, Layout, Rect};
pub use crossterm::style::Stylize;

pub type Frame<'a> = ratatui::Frame<'a, CrosstermBackend<Stdout>>;
}

0 comments on commit 999b154

Please sign in to comment.