Skip to content

Commit 99f907b

Browse files
dependabot[bot]jonahgaoalamb
authored
chore(deps): bump rustyline from 14.0.0 to 15.0.0 in /datafusion-cli (#14265)
* chore(deps): bump rustyline from 14.0.0 to 15.0.0 in /datafusion-cli Bumps [rustyline](https://github.com/kkawakam/rustyline) from 14.0.0 to 15.0.0. - [Release notes](https://github.com/kkawakam/rustyline/releases) - [Changelog](https://github.com/kkawakam/rustyline/blob/master/History.md) - [Commits](kkawakam/rustyline@v14.0.0...v15.0.0) --- updated-dependencies: - dependency-name: rustyline dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix build --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: jonahgao <jonahgao@msn.com> Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
1 parent 707f673 commit 99f907b

File tree

4 files changed

+15
-27
lines changed

4 files changed

+15
-27
lines changed

datafusion-cli/Cargo.lock

Lines changed: 9 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datafusion-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ object_store = { version = "0.11.0", features = ["aws", "gcp", "http"] }
6464
parking_lot = { version = "0.12" }
6565
parquet = { version = "54.0.0", default-features = false }
6666
regex = "1.8"
67-
rustyline = "14.0"
67+
rustyline = "15.0"
6868
tokio = { version = "1.24", features = ["macros", "rt", "rt-multi-thread", "sync", "parking_lot", "signal"] }
6969
url = "2.5.4"
7070

datafusion-cli/src/helper.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use datafusion::sql::sqlparser::parser::ParserError;
3030

3131
use rustyline::completion::{Completer, FilenameCompleter, Pair};
3232
use rustyline::error::ReadlineError;
33-
use rustyline::highlight::Highlighter;
33+
use rustyline::highlight::{CmdKind, Highlighter};
3434
use rustyline::hint::Hinter;
3535
use rustyline::validate::{ValidationContext, ValidationResult, Validator};
3636
use rustyline::{Context, Helper, Result};
@@ -118,8 +118,8 @@ impl Highlighter for CliHelper {
118118
self.highlighter.highlight(line, pos)
119119
}
120120

121-
fn highlight_char(&self, line: &str, pos: usize, forced: bool) -> bool {
122-
self.highlighter.highlight_char(line, pos, forced)
121+
fn highlight_char(&self, line: &str, pos: usize, kind: CmdKind) -> bool {
122+
self.highlighter.highlight_char(line, pos, kind)
123123
}
124124
}
125125

datafusion-cli/src/highlighter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use datafusion::sql::sqlparser::{
2727
keywords::Keyword,
2828
tokenizer::{Token, Tokenizer},
2929
};
30-
use rustyline::highlight::Highlighter;
30+
use rustyline::highlight::{CmdKind, Highlighter};
3131

3232
/// The syntax highlighter.
3333
#[derive(Debug)]
@@ -73,7 +73,7 @@ impl Highlighter for SyntaxHighlighter {
7373
}
7474
}
7575

76-
fn highlight_char(&self, line: &str, _pos: usize, _forced: bool) -> bool {
76+
fn highlight_char(&self, line: &str, _pos: usize, _cmd: CmdKind) -> bool {
7777
!line.is_empty()
7878
}
7979
}

0 commit comments

Comments
 (0)