mirror of
https://github.com/nushell/nushell
synced 2024-12-26 04:53:09 +00:00
commit
897bd1a909
3 changed files with 3 additions and 5 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1168,7 +1168,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "nu"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
dependencies = [
|
||||
"adhoc_derive 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
|
|
@ -78,9 +78,7 @@ pub async fn cli() -> Result<(), Box<Error>> {
|
|||
}
|
||||
|
||||
rl.set_helper(Some(h));
|
||||
if rl.load_history("history.txt").is_err() {
|
||||
println!("No previous history.");
|
||||
}
|
||||
let _ = rl.load_history("history.txt");
|
||||
|
||||
loop {
|
||||
let readline = rl.readline(&format!(
|
||||
|
|
|
@ -40,7 +40,7 @@ mod tests {
|
|||
match process.stdin.unwrap().write_all(input_commands.as_bytes()) {
|
||||
Err(why) => panic!("couldn't write to wc stdin: {}",
|
||||
why.description()),
|
||||
Ok(_) => println!("sent pangram to wc"),
|
||||
Ok(_) => {},
|
||||
}
|
||||
|
||||
let mut s = String::new();
|
||||
|
|
Loading…
Reference in a new issue