From 053f911804b34c7e79762581127544a5a0a63fb0 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Mon, 16 Dec 2024 17:11:04 -0800 Subject: [PATCH] Update deps. --- Cargo.lock | 8 ++++---- Cargo.toml | 4 ++-- crates/cli/src/session.rs | 8 +++++++- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b370d13b..47f7ceea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3761,9 +3761,9 @@ dependencies = [ [[package]] name = "starbase_console" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0d660a40f9912b8f06e205fb1ec2db0e7056ebd2781b7a0c41f74d66b0932ef" +checksum = "6d4523c06ecf368513e2414e16708320f0cb4a80f8741d8396860d59cc6e9e03" dependencies = [ "crossterm", "flume", @@ -3805,9 +3805,9 @@ dependencies = [ [[package]] name = "starbase_styles" -version = "0.4.8" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4d4dd948c7fe2118ff7b662c4171734c7dec02aaaea2bca7cc364d5cc7f4808" +checksum = "81baa090153ac22b9e2666a01899a1797e88e4ae1fee84a0440862887d299219" dependencies = [ "dirs 5.0.1", "miette 7.4.0", diff --git a/Cargo.toml b/Cargo.toml index b228264b..cd0556ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,11 +50,11 @@ starbase_archive = { version = "0.9.0", features = [ "zip", "zip-deflate", ] } -starbase_console = { version = "0.1.0", features = ["ui"] } +starbase_console = { version = "0.1.1", features = ["ui"] } starbase_events = { version = "0.6.3" } starbase_sandbox = { version = "0.8.0" } starbase_shell = { version = "0.6.8", features = ["miette"] } -starbase_styles = { version = "0.4.8" } +starbase_styles = { version = "0.4.9" } starbase_utils = { version = "0.9.1", default-features = false, features = [ "json", "miette", diff --git a/crates/cli/src/session.rs b/crates/cli/src/session.rs index 58cd1f11..cec0b3aa 100644 --- a/crates/cli/src/session.rs +++ b/crates/cli/src/session.rs @@ -13,7 +13,9 @@ use proto_core::{ use rustc_hash::FxHashSet; use semver::Version; use starbase::{AppResult, AppSession}; +use starbase_console::ui::{style_to_color, ConsoleTheme}; use starbase_console::{Console, EmptyReporter}; +use starbase_styles::Style; use std::sync::Arc; use tokio::task::JoinSet; use tracing::debug; @@ -38,10 +40,14 @@ pub struct ProtoSession { impl ProtoSession { pub fn new(cli: CLI) -> Self { + let mut console = Console::::new(false); + console.set_theme(ConsoleTheme::branded(style_to_color(Style::Shell))); + console.set_reporter(EmptyReporter); + Self { cli, cli_version: Version::parse(env!("CARGO_PKG_VERSION")).unwrap(), - console: Console::new(false), + console, env: Arc::new(ProtoEnvironment::default()), } }