Skip to content

Commit

Permalink
Revert "chore(deps): bump rustyline from 10.1.1 to 11.0.0 (#16517)"
Browse files Browse the repository at this point in the history
This reverts commit 2b28408.
  • Loading branch information
jszwedko authored Feb 21, 2023
1 parent c8870af commit 0e0269b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
30 changes: 27 additions & 3 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 lib/vrl/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ indoc = "2.0.0"
once_cell = { version = "1.17", optional = true }
prettytable-rs = { version = "0.10", default-features = false, optional = true }
regex = { version = "1", default-features = false, optional = true, features = ["perf"] }
rustyline = { version = "11", default-features = false, optional = true }
rustyline = { version = "10", default-features = false, optional = true }
serde_json = "1"
thiserror = "1"
vector-common = { path = "../../vector-common", default-features = false }
Expand Down
5 changes: 2 additions & 3 deletions lib/vrl/cli/src/repl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use rustyline::{
error::ReadlineError,
highlight::{Highlighter, MatchingBracketHighlighter},
hint::{Hinter, HistoryHinter},
history::MemHistory,
validate::{self, ValidationResult, Validator},
Context, Editor, Helper,
};
Expand Down Expand Up @@ -62,7 +61,7 @@ pub(crate) fn run(
let mut state = TypeState::default();

let mut rt = Runtime::new(state::Runtime::default());
let mut rl = Editor::<Repl, MemHistory>::new()?;
let mut rl = Editor::<Repl>::new()?;
rl.set_helper(Some(Repl::new()));

#[allow(clippy::print_stdout)]
Expand All @@ -84,7 +83,7 @@ pub(crate) fn run(
// Capture "help docs <func_name>"
Ok(line) if func_docs_regex.is_match(line) => show_func_docs(line, &func_docs_regex),
Ok(line) => {
rl.add_history_entry(line)?;
rl.add_history_entry(line);

let command = match line {
"next" => {
Expand Down

0 comments on commit 0e0269b

Please sign in to comment.