aboutsummaryrefslogtreecommitdiffstats
path: root/src/local/history.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/local/history.rs')
-rw-r--r--src/local/history.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/local/history.rs b/src/local/history.rs
new file mode 100644
index 00000000..61438b6d
--- /dev/null
+++ b/src/local/history.rs
@@ -0,0 +1,18 @@
+use chrono;
+
+#[derive(Debug)]
+pub struct History {
+ pub timestamp: i64,
+ pub command: String,
+ pub cwd: String,
+}
+
+impl History {
+ pub fn new(command: &str, cwd: &str) -> History {
+ History {
+ timestamp: chrono::Utc::now().timestamp_millis(),
+ command: command.to_string(),
+ cwd: cwd.to_string(),
+ }
+ }
+}