diff rust/chg/src/lib.rs @ 39974:a9c5fc436fd5

rust-chg: add callback to handle pager and shell command requests This could be inlined into the ChgRunCommand state to be introduced by the next patch, but it seemed good to separate any user interactions from the IPC code.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 24 Sep 2018 18:18:35 +0900
parents 7a0ffdd4af78
children 571d8eb39095
line wrap: on
line diff
--- a/rust/chg/src/lib.rs	Sat Sep 29 21:59:07 2018 +0900
+++ b/rust/chg/src/lib.rs	Mon Sep 24 18:18:35 2018 +0900
@@ -9,7 +9,11 @@
 extern crate libc;
 extern crate tokio;
 extern crate tokio_hglib;
+extern crate tokio_process;
 
 pub mod attachio;
 pub mod message;
 pub mod procutil;
+mod uihandler;
+
+pub use uihandler::{ChgUiHandler, SystemHandler};