Skip to content

Commit

Permalink
Updated prettytable to 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
phsym committed Sep 29, 2018
1 parent c08d560 commit ec69b0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shrust"
version = "0.0.5"
version = "0.0.6"
description = "A library for creating interactive command line shells in Rust"
authors = ["Pierre-Henri Symoneaux"]
repository = "https://github.com/phsym/shrust"
Expand All @@ -11,4 +11,4 @@ license = "MIT"
keywords = ["shell", "console", "interactive", "terminal", "command"]

[dependencies]
prettytable-rs = "^0.7"
prettytable-rs = "^0.8"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ More often, you will include the library as a dependency to your project. In ord

```toml
[dependencies]
shrust = "0.0.5"
shrust = "0.0.6"
```

## Basic usage
Expand Down
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ impl <T> Shell<T> {
for cmd in self.commands.values() {
table.add_row(cmd.help());
}
return table.print(io).map_err(From::from)
table.print(io)?;
Ok(())
}

/// Return the command history
Expand Down Expand Up @@ -325,7 +326,7 @@ impl History {

mod builtins {
use std::str::FromStr;
use prettytable::row::Row;
use prettytable::Row;
use super::{Shell, ShellIO, ExecError, ExecResult};

pub type CmdFn<T> = Box<Fn(&mut ShellIO, &mut Shell<T>, &[&str]) -> ExecResult + Send + Sync>;
Expand Down

0 comments on commit ec69b0e

Please sign in to comment.