Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ cargo_metadata = "0.17.0"
chrono = { version = "0.4.24", default-features = false }
clap = { version = "4.2.4", features = ["derive", "wrap_help"] }
clap-markdown = "0.1.4"
colored = "2.0.0"
owo-colors = "4.2.3"
console = { version = "0.15.6" }
convert_case = "0.6.0"
crc32c = "0.6.4"
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ bytes.workspace = true
cargo_metadata.workspace = true
chrono.workspace = true
clap = { workspace = true, features = ["derive", "env", "string"] }
colored.workspace = true
owo-colors.workspace = true
convert_case.workspace = true
dirs.workspace = true
duct.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ use crate::{publish, tasks};
use anyhow::Context;
use clap::parser::ValueSource;
use clap::{Arg, ArgMatches, Command};
use colored::Colorize;
use dialoguer::{theme::ColorfulTheme, Confirm, FuzzySelect, Input};
use futures::stream::{self, StreamExt};
use futures::{AsyncBufReadExt, TryStreamExt};
use ignore::gitignore::{Gitignore, GitignoreBuilder};
use indicatif::{ProgressBar, ProgressStyle};
use notify::{Event, RecommendedWatcher, RecursiveMode, Watcher};
use owo_colors::OwoColorize;
use regex::Regex;
use serde::Deserialize;
use serde_json::json;
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use crate::Config;
use anyhow::anyhow;
use anyhow::Context;
use clap::{Arg, ArgMatches};
use colored::Colorize;
use convert_case::{Case, Casing};
use dialoguer::{theme::ColorfulTheme, Confirm, FuzzySelect, Input, Select};
use owo_colors::OwoColorize;
use reqwest::Url;
use serde::{Deserialize, Serialize};
use serde_json::json;
Expand Down
4 changes: 2 additions & 2 deletions crates/cli/src/subcommands/repl.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::api::{ClientApi, Connection};
use crate::sql::run_sql;
use colored::*;
use dirs::home_dir;
use owo_colors::OwoColorize;
use std::env::temp_dir;

use rustyline::completion::Completer;
Expand Down Expand Up @@ -61,7 +61,7 @@ pub async fn exec(con: Connection) -> Result<(), anyhow::Error> {
let api = ClientApi::new(con);

loop {
let readline = rl.readline(&format!("🪐{}>", &database).green());
let readline = rl.readline(&format!("🪐{}>", &database).green().to_string());
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Macros like format and println are ok with anything that impl Display but this readline needs a &str so we need to first call to_string to convert unlike before which was automatically alloc a string for us.

match readline {
Ok(line) => match line.as_str() {
".exit" => break,
Expand Down
2 changes: 1 addition & 1 deletion crates/update/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ clap.workspace = true
dialoguer = { workspace = true, default-features = false }
flate2.workspace = true
http-body-util = "0.1.2"
colored.workspace = true
owo-colors.workspace = true
indicatif.workspace = true
log.workspace = true
reqwest.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/update/src/update_notice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use std::path::{Path, PathBuf};
use std::time::{Duration, SystemTime, UNIX_EPOCH};

use colored::Colorize;
use owo_colors::OwoColorize;

use crate::cli::install::fetch_latest_release_version;

Expand Down