Crates.io | shrs_file_history |
lib.rs | shrs_file_history |
version | 0.0.6 |
source | src |
created_at | 2024-06-01 04:56:12.039328 |
updated_at | 2024-06-01 04:56:12.039328 |
description | File backed history support |
homepage | https://mrpicklepinosaur.github.io/shrs/ |
repository | https://github.com/MrPicklePinosaur/shrs |
max_upload_size | |
id | 1258498 |
size | 60,751 |
First add this plugin to your dependencies
shrs_command_timer = { version = "0.0.6" }
Then include this plugin when initializing shrs
use shrs::shell::ShellBuilder;
use shrs_file_history::FileBackedHistoryPlugin;
fn main() {
let myshell = ShellBuilder::default()
.with_plugin(FileBackedHistoryPlugin::new())
.build()
.unwrap();
myshell.run().expect("Error when running shell");
}