mirror of
https://github.com/nushell/nushell
synced 2024-12-26 13:03:07 +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]]
|
[[package]]
|
||||||
name = "nu"
|
name = "nu"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"adhoc_derive 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"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));
|
rl.set_helper(Some(h));
|
||||||
if rl.load_history("history.txt").is_err() {
|
let _ = rl.load_history("history.txt");
|
||||||
println!("No previous history.");
|
|
||||||
}
|
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let readline = rl.readline(&format!(
|
let readline = rl.readline(&format!(
|
||||||
|
|
|
@ -40,7 +40,7 @@ mod tests {
|
||||||
match process.stdin.unwrap().write_all(input_commands.as_bytes()) {
|
match process.stdin.unwrap().write_all(input_commands.as_bytes()) {
|
||||||
Err(why) => panic!("couldn't write to wc stdin: {}",
|
Err(why) => panic!("couldn't write to wc stdin: {}",
|
||||||
why.description()),
|
why.description()),
|
||||||
Ok(_) => println!("sent pangram to wc"),
|
Ok(_) => {},
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut s = String::new();
|
let mut s = String::new();
|
||||||
|
|
Loading…
Reference in a new issue